Skip to content

Commit

Permalink
findandmodify example in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
SergejJurecko committed Jun 27, 2010
1 parent 7d426e7 commit 822490d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ Connection info is saved in an application variable (erlmongo,connections) and u
% exists example:
Mong:find(#mydoc{tags = {exists, false}}, undefined, 0,0).

% findandmodify command
Mong:runCmd([{"findandmodify", "collectionname"},{"query", [{"fn","onmeta.flv"},{"ch","somechan"}]},{"remove",1}]).

% GridFS
{ok, Bin} = file:read_file("SomeFile").
% To open file for writing, use gfsNew
Expand All @@ -107,6 +110,9 @@ Connection info is saved in an application variable (erlmongo,connections) and u
Res = Mong:gfsRead(PID,100000).
Mong:gfsClose(PID).

= Supported Data types and modifiers
Look at mongodb:encode_element/1

== Supported operation list
Collections
* remove
Expand Down

0 comments on commit 822490d

Please sign in to comment.