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

selectCollection() public method

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