Phalcon\Db\Adapter\MongoDB\Collection::find PHP Метод

find() публичный Метод

Finds documents matching the query.
См. также: Find::__construct() for supported options
См. также: http://docs.mongodb.org/manual/core/read-operations-introduction/
public find ( array | object $filter = [], array $options = [] ) : MongoDB\Driver\Cursor
$filter array | object Query by which to filter documents
$options array Additional options
Результат MongoDB\Driver\Cursor
    public function find($filter = [], array $options = [])
    {
        if (!isset($options['readConcern'])) {
            $options['readConcern'] = $this->readConcern;
        }
        if (!isset($options['readPreference'])) {
            $options['readPreference'] = $this->readPreference;
        }
        if (!isset($options['typeMap'])) {
            $options['typeMap'] = $this->typeMap;
        }
        $operation = new Find($this->databaseName, $this->collectionName, $filter, $options);
        $server = $this->manager->selectServer($options['readPreference']);
        return $operation->execute($server);
    }