Skip to content

Commit

Permalink
explain the usage of re in query
Browse files Browse the repository at this point in the history
  • Loading branch information
HouzuoGuo committed Nov 7, 2013
1 parent 0da9173 commit 9a5026a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/API-V3-Reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,10 @@ Lookup finds documents with specific value in a path: `{"in": [ path ... ], "eq"

For example: `{"in": ["Author", "Name", "First Name"], "eq": "John"}`.

You can also find documents by using regex: `{"in": [ path ... ], "re": "Go regular expression"}`.

For example: `{"in": ["Author, "Name", "First Name"], "re": "^John.*ed$"}`

Another operation, "has", finds any document with any value in the path: `{"has": [ path ...] }`.

For example: `{"has": ["Author", "Name", "Pen Name"]}`.
Expand Down

0 comments on commit 9a5026a

Please sign in to comment.