all() public method
Executes the query and returns all results as an array.
public array all ( $db = null )$db yii\mongodb\Connection
The Mongo connection used to execute the query. If this parameter is not given, the mongodb application component will be used. return array
The query results. If the query results in nothing, an empty array will be returned.