diff --git a/src/docbkx/reference/mongo-repositories.xml b/src/docbkx/reference/mongo-repositories.xml index 1b63405a6..655d65563 100644 --- a/src/docbkx/reference/mongo-repositories.xml +++ b/src/docbkx/reference/mongo-repositories.xml @@ -235,6 +235,16 @@ public class PersonRepositoryTests { regex) + + Regex + + findByFirstnameRegex(String + firstname) + + {"firstname" : {"$regex" : firstname + }} + + (No keyword) @@ -279,7 +289,34 @@ public class PersonRepositoryTests { box) {"location" : {"$within" : {"$box" : [ [x1, y1], - x2, y2]}}} + x2, y2]}}}True + + + + IsTrue, + True + + findByActiveIsTrue() + + {"active" : true} + + + + IsFalse, + False + + findByActiveIsFalse() + + {"active" : false} + + + + Exists + + findByLocationExists(boolean + exists) + + {"location" : {"$exists" : exists }} @@ -469,4 +506,4 @@ Page<Person> page = repository.findAll(person.lastname.contains("a"), MongoDB queries. - + \ No newline at end of file