Permalink
Browse files

Nicer or syntax: M:find(mydoc,[{'or',[{a,1},{i,11}]}],undefined,0,100).

  • Loading branch information...
1 parent 8811b7a commit 5537a9a5a497a4fa2aa75de49cfaeed4919a0563 @SergejJurecko committed May 9, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 README.rdoc
View
@@ -74,6 +74,9 @@ Connection info is saved in an application variable (erlmongo,connections) and u
% Find examples:
+ % Or
+ M:find("mydoc",[{'or',[{"a",1},{"i",11}]}],undefined,0,100).
+
% Parameters: Search criteria, field selector, docs to skip, docs to return
Mong:find(#mydoc{i = 4}, [#mydoc.name], 0, 0).
% Same thing but with #search record that provides default parameters

0 comments on commit 5537a9a

Please sign in to comment.