yii\mongodb\Collection::count PHP 메소드

count() 공개 메소드

Counts records in this collection.
부터: 2.1
public count ( array $condition = [], array $options = [] ) : integer
$condition array query condition
$options array list of options in format: optionName => optionValue.
리턴 integer records count.
    public function count($condition = [], $options = [])
    {
        return $this->database->createCommand()->count($this->name, $condition, $options);
    }