MongoGridFS::find
MongoGridFS::remove
MongoGridFS
PHP Manual

# MongoGridFS::findOne

(PECL mongo >=0.9.0)

MongoGridFS::findOne — Returns a single file matching the criteria

### Descripción

public MongoGridFSFile MongoGridFS::findOne ([ mixed `$query`= array() ] )

### Lista de parámetros

`query`

  The filename or criteria for which to search.

### Valores retornados

Returns a file or `NULL`.

MongoGridFS::find
MongoGridFS::remove
MongoGridFS
PHP Manual