source/Spiral/ORM/Entities/RecordSource.php
public function findOne(array $query = [], array $sortBy = [], array $load = [])
    {
        return $this->getSelector()->orderBy($sortBy)->load($load)->findOne($query);
    }
public function findOne(array $query = [], array $sortBy = [], array $load = [])
    {
        return $this->getSelector()->orderBy($sortBy)->load($load)->findOne($query);
    }
public function findOne ( array $ query = [ ] , array $ sortBy = [ ] , array $ load = [ ] ) { return $ this -> getSelector ( ) -> orderBy ( $ sortBy ) -> load ( $ load ) -> findOne ( $ query ) ; }
Select one document from mongo collection.

@param array $query  Fields and conditions to query by.
@param array $sortBy Always specify sort by to ensure that results are stable.
@param array $load   Relations to pre-load.

@return EntityInterface|Record|null
Select one document from mongo collection .