Phalcon\Db\Adapter\MongoDB\Client::selectCollection PHP Method

selectCollection() public method

Select a collection.
See also: Collection::__construct() for supported options
public selectCollection ( string $databaseName, string $collectionName, array $options = [] ) : Collection
$databaseName string Name of the database containing the collection
$collectionName string Name of the collection to select
$options array Collection constructor options
return Collection
    public function selectCollection($databaseName, $collectionName, array $options = [])
    {
        $options += ['typeMap' => $this->typeMap];
        return new Collection($this->manager, $databaseName, $collectionName, $options);
    }