Commit 7b2867bd authored by Jens Segers's avatar Jens Segers

Updated readme for #31

parent 675bb863
...@@ -274,6 +274,13 @@ Or you can access the internal object directly: ...@@ -274,6 +274,13 @@ Or you can access the internal object directly:
### MongoDB specific operations ### MongoDB specific operations
**Upsert**
Update or insert a document. Additional options for the update method are passed directly to the native update method.
DB::collection('users')->where('name', 'John')
->update($data, array('upsert' => true));
**Push** **Push**
Add an items to an array. Add an items to an array.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment