public static firstOrFail ( mixed $query = [], array $projection = [], boolean $useCache = false ) : |
||
$query | mixed | MongoDB selection criteria. |
$projection | array | Fields to project in Mongo query. |
$useCache | boolean | Retrieves the entity through a CacheableCursor. |
return |