query() public method
Executes this command as a mongo query
public \MongoDB\Driver\Cursor query ( $collectionName, $options = [] ) | ||
---|---|---|
$collectionName | string |
Collection name |
$options | array |
Query options. |
return | \MongoDB\Driver\Cursor |
Result cursor. |
throws | yii\mongodb\Exception |
on failure |
Please login to continue.