MongoCursor
PHP Manual

MongoCursor::hint

(PECL mongo >=0.9.0)

MongoCursor::hintGives the database a hint about the query

Описание

public MongoCursor MongoCursor::hint ( array $key_pattern )

Список параметров

key_pattern

Indexes to use for the query.

Возвращаемые значения

Returns this cursor.

Ошибки

Throws MongoCursorException if this cursor has started iterating.


MongoCursor
PHP Manual