Method |
Description |
|
aggregate ( string $collectionName, array $pipeline, array $options = [] ) : Traversable |
|
|
bulkWrite ( string $collectionName, array $operations, array $options = [] ) : MongoDB\BulkWriteResult |
|
|
command ( array | object $command, array $options = [] ) : MongoDB\Driver\Cursor |
|
|
connect ( $uri, array $uriOptions = [], array $driverOptions = [] ) |
|
|
count ( string $collectionName, array $filter = [], array $options = [] ) : integer |
|
|
createCollection ( string $collectionName, array $options = [] ) : object |
|
|
createIndex ( string $collectionName, array | object $key, array $options = [] ) : string |
|
|
createIndexes ( string $collectionName, array $indexes ) : string[] |
|
|
delete ( string $collectionName, array | object $filter, array $options = [] ) : MongoDB\DeleteResult |
|
|
distinct ( string $collectionName, string $fieldName, array $filter = [], array $options = [] ) : mixed[] |
|
|
dropCollection ( string $collectionName, array $options = [] ) : array | object |
|
|
dropIndex ( string $collectionName, string $indexName, array $options = [] ) : array | object |
|
|
dropIndexes ( string $collectionName, array $options = [] ) : array | object |
|
|
find ( string $collectionName, array $filter = [], array $options = [] ) : MongoDB\Driver\Cursor |
|
|
findOne ( string $collectionName, array $filter = [], array $options = [] ) : null | object |
|
|
findOneAndDelete ( string $collectionName, array | object $filter, array $options = [] ) : null | object |
|
|
findOneAndReplace ( string $collectionName, array | object $filter, array | object $replacement, array $options = [] ) : null | object |
|
|
findOneAndUpdate ( string $collectionName, array | object $filter, array | object $update, array $options = [] ) : null | object |
|
|
getNamespace ( string $collectionName ) : string |
|
|
id ( null | string $id = null ) : mixed |
Create a mongo ID instance |
|
insertMany ( string $collectionName, array $documents, array $options = [] ) : MongoDB\InsertManyResult |
|
|
insertOne ( string $collectionName, array | object $document, array $options = [] ) : MongoDB\InsertOneResult |
|
|
isId ( mixed $id ) : boolean |
Check if given string/object is a valid mongo ID. |
|
listCollections ( array $options = [] ) : MongoDB\Model\CollectionInfoIterator |
|
|
listIndexes ( string $collectionName, array $options = [] ) : MongoDB\Model\IndexInfoIterator |
|
|
selectDatabase ( string $database ) |
Select database |
|
update ( string $collectionName, array | object $filter, array | object $update, array $options = [] ) : MongoDB\UpdateResult |
|
|