public function MongoDebugCollection::find in MongoDB 7
Same name and namespace in other branches
- 6 mongodb.module \MongoDebugCollection::find()
A decorator for the MongoCollection::find() method adding debug info.
Parameters
array|null $query: A MongoCollection;:find()-compatible query array.
array|null $fields: A MongoCollection;:find()-compatible fields array.
Return value
\MongoDebugCursor A debug cursor wrapping the decorated find() results.
File
- ./
mongodb.module, line 176 - Contains the main module connecting Drupal to MongoDB.
Class
Code
public function find($query = array(), $fields = array()) {
debug('find');
debug($query);
debug($fields);
return new MongoDebugCursor($this->collection
->find($query, $fields));
}