src/Mongo/MongoService.php
public function findOne($collection, array $criteria, array $fields = [])
    {
        return $this->dbConnection->selectCollection($collection)->findOne($criteria, $fields);
    }
public function findOne($collection, array $criteria, array $fields = [])
    {
        return $this->dbConnection->selectCollection($collection)->findOne($criteria, $fields);
    }
public function findOne ( $ collection , array $ criteria , array $ fields = [ ] ) { return $ this -> dbConnection -> selectCollection ( $ collection ) -> findOne ( $ criteria , $ fields ) ; }
returns the first found matching document

@param string $collection
@param array $criteria
@param array $fields
@return array
@throws \Exception
returns the first found matching document