mongo
cursor.
noCursorTimeout
Instructs the server to avoid closing a cursor automatically after a period of inactivity.
The noCursorTimeout() method has the following prototype form:
noCursorTimeout()
db.collection.find(<query>).noCursorTimeout()