Browse Source

DATAMONGO-2464 - Polishing.

Apply fix also to reactive MongoDB repository documentation.

Original pull request: #816.
pull/832/head
Mark Paluch 6 years ago
parent
commit
d0c2c820d7
No known key found for this signature in database
GPG Key ID: 51A00FA751B91849
  1. 4
      src/main/asciidoc/reference/reactive-mongo-repositories.adoc

4
src/main/asciidoc/reference/reactive-mongo-repositories.adoc

@ -160,7 +160,7 @@ The following example shows how to define a `near` query that finds all persons @@ -160,7 +160,7 @@ The following example shows how to define a `near` query that finds all persons
====
[source,java]
----
public interface PersonRepository extends ReactiveMongoRepository<Person, String>
public interface PersonRepository extends ReactiveMongoRepository<Person, String> {
// { 'location' : { '$near' : [point.x, point.y], '$maxDistance' : distance}}
Flux<Person> findByLocationNear(Point location, Distance distance);
@ -195,7 +195,7 @@ Spring Data MongoDB supports geo-near queries, as the following example shows: @@ -195,7 +195,7 @@ Spring Data MongoDB supports geo-near queries, as the following example shows:
[source,java]
----
public interface PersonRepository extends ReactiveMongoRepository<Person, String>
public interface PersonRepository extends ReactiveMongoRepository<Person, String> {
// {'geoNear' : 'location', 'near' : [x, y] }
Flux<GeoResult<Person>> findByLocationNear(Point location);

Loading…
Cancel
Save