Commit 55c57e77 authored by Jens Segers's avatar Jens Segers

Updated readme for raw operations

parent 807dbe4a
...@@ -270,10 +270,15 @@ You can also perform raw expressions on the internal MongoCollection object, not ...@@ -270,10 +270,15 @@ You can also perform raw expressions on the internal MongoCollection object, not
return $collection->find(); return $collection->find();
}); });
Or you can access the internal object directly: Or you can access the internal MongoCollection object directly:
User::raw()->find(); User::raw()->find();
The MongoClient and MongoDB objects can be accessed like this:
$client = DB::getMongoClient();
$db = DB::getMongoDB();
### MongoDB specific operations ### MongoDB specific operations
**Upsert** **Upsert**
......
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