Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

findandmodify example in readme

  • Loading branch information...
commit 822490dfc3dd3a261a898790393f6cf8779280b8 1 parent 7d426e7
Sergej Jurečko authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 README.rdoc
6 README.rdoc
View
@@ -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
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.