MongolidLaravel\MongolidModel::first PHP Method

first() public static method

Gets the first entity of this kind that matches the query.
public static first ( mixed $query = [], array $projection = [], boolean $useCache = false ) : ActiveRecord
$query mixed MongoDB selection criteria.
$projection array Fields to project in MongoDB query.
$useCache boolean Retrieves the entity through a CacheableCursor.
return Mongolid\ActiveRecord
    public static function first($query = [], array $projection = [], bool $useCache = false)
    {
        return static::callMockOrParent('first', func_get_args());
    }