find() public method
Returns a cursor for the search results. In order to perform "find" queries use yii\mongodb\file\Query class.
public yii\mongodb\file\Cursor find ( $condition = [], $fields = [], $options = [] )$condition array
Query condition $fields array
Fields to be selected $options array
Query options (available since 2.1). return yii\mongodb\file\Cursor
Cursor for the search results