MongoCursor::hasNext
MongoCursor::limit
MongoCursor
PHP Manual

# MongoCursor::hint

(PECL mongo >=0.9.0)

MongoCursor::hint — Gives the database a hint about the query

### Descripción

public MongoCursor MongoCursor::hint ( array `$key_pattern` )

### Lista de parámetros

`key_pattern`

  Indexes to use for the query.

### Valores retornados

Returns this cursor.

### Errors/Exceptions

Throws MongoCursorException if this cursor has started iterating.

MongoCursor::hasNext
MongoCursor::limit
MongoCursor
PHP Manual