|
MongoDB\Driver\Manager::executeQueryExecute a database query Description
final public MongoDB\Driver\Cursor MongoDB\Driver\Manager::executeQuery
( string
$namespace
, MongoDB\Driver\Query $query
[, MongoDB\Driver\ReadPreference $readPreference
] )
Executes Parameters
Return ValuesReturns MongoDB\Driver\Cursor on success. Errors/Exceptions
ExamplesExample #1 MongoDB\Driver\Manager::executeQuery example
<?php The above example will output: object(stdClass)#6 (1) { ["x"]=> int(3) } object(stdClass)#7 (1) { ["x"]=> int(2) } See Also
|