Skip to content

Commit

Permalink
Show some options for FindDocuments
Browse files Browse the repository at this point in the history
  • Loading branch information
zbjornson committed Dec 31, 2015
1 parent f19cb72 commit d39cebf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ Unfortunately I lost my installation of Workbench and can't generate nice docs f
(* Fetch all documents *)
FindDocuments[coll]

(* Limit the fields returned *)
FindDocuments[coll, "Fields" -> {"b"}]

(* Paginate results *)
FindDocuments[coll, "Offset"->1, "Limit"->1]

(* Use query operators. Refer to the MongoDB docs for info on valid operators. *)
FindDocuments[coll, {"a" -> {"$gt" -> 2}}]

Expand Down

0 comments on commit d39cebf

Please sign in to comment.