Skip to content

Commit 55c57e7

Browse files
committed
Updated readme for raw operations
1 parent 807dbe4 commit 55c57e7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,10 +270,15 @@ You can also perform raw expressions on the internal MongoCollection object, not
270270
return $collection->find();
271271
});
272272

273-
Or you can access the internal object directly:
273+
Or you can access the internal MongoCollection object directly:
274274

275275
User::raw()->find();
276276

277+
The MongoClient and MongoDB objects can be accessed like this:
278+
279+
$client = DB::getMongoClient();
280+
$db = DB::getMongoDB();
281+
277282
### MongoDB specific operations
278283

279284
**Upsert**

0 commit comments

Comments
 (0)