Mongolid\ActiveRecord::where PHP Method

where() public static method

Gets a cursor of this kind of entities that matches the query from the database.
public static where ( array $query = [], array $projection = [], boolean $useCache = false ) : Cursor
$query array MongoDB selection criteria.
$projection array Fields to project in Mongo query.
$useCache boolean Retrieves a CacheableCursor instead.
return Mongolid\Cursor\Cursor
    public static function where(array $query = [], array $projection = [], bool $useCache = false)
    {
        return self::getDataMapperInstance()->where($query, $projection, $useCache);
    }