Answers for "springboot custom query mongodb"

0

mongorepository spring boot custom query

public interface PersonRepository extends MongoRepository<Person, String>
// Geo-spatial repository queries
  // { 'location' : { '$near' : [point.x, point.y], '$maxDistance' : distance}}
  List<Person> findByLocationNear(Point location, Distance distance);
}
Posted by: Guest on March-24-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language