{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/mongoose/issues/3464","labels_url":"https://api.github.com/repos/Automattic/mongoose/issues/3464/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/mongoose/issues/3464/comments","events_url":"https://api.github.com/repos/Automattic/mongoose/issues/3464/events","html_url":"https://github.com/Automattic/mongoose/issues/3464","id":111386297,"number":3464,"title":"Cannot set noTimeout option to the underlying cursor","user":{"login":"mike1808","id":3942554,"avatar_url":"https://avatars.githubusercontent.com/u/3942554?v=3","gravatar_id":"","url":"https://api.github.com/users/mike1808","html_url":"https://github.com/mike1808","followers_url":"https://api.github.com/users/mike1808/followers","following_url":"https://api.github.com/users/mike1808/following{/other_user}","gists_url":"https://api.github.com/users/mike1808/gists{/gist_id}","starred_url":"https://api.github.com/users/mike1808/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mike1808/subscriptions","organizations_url":"https://api.github.com/users/mike1808/orgs","repos_url":"https://api.github.com/users/mike1808/repos","events_url":"https://api.github.com/users/mike1808/events{/privacy}","received_events_url":"https://api.github.com/users/mike1808/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-14T12:22:35Z","updated_at":"2015-10-15T12:43:47Z","closed_at":null,"body":"I've created an administrative script which uses stream in order to get documents one by one process them. It look like this.\r\n\r\n```js\r\nmodel.find().stream().on('data', process);\r\n```\r\n\r\nThe process function can took more then 10 minutes to finish. However, after 10 minutes the underlying cursor is closed [docs](http://docs.mongodb.org/manual/core/cursors/#closure-of-inactive-cursors). \r\n\r\nI didn't find any solution to get the cursor object and set the noTimeout property to false via [addCursorFlag](https://mongodb.github.io/node-mongodb-native/2.0/api/Cursor.html#addCursorFlag) method of the cursor of  the native mongodb driver.\r\n\r\nCan you expose the underlying cursor object? Something like this\r\n```js\r\nlet cursor = model.find().getCursor();\r\n```"},"comment":{"url":"https://api.github.com/repos/Automattic/mongoose/issues/comments/148373993","html_url":"https://github.com/Automattic/mongoose/issues/3464#issuecomment-148373993","issue_url":"https://api.github.com/repos/Automattic/mongoose/issues/3464","id":148373993,"user":{"login":"mike1808","id":3942554,"avatar_url":"https://avatars.githubusercontent.com/u/3942554?v=3","gravatar_id":"","url":"https://api.github.com/users/mike1808","html_url":"https://github.com/mike1808","followers_url":"https://api.github.com/users/mike1808/followers","following_url":"https://api.github.com/users/mike1808/following{/other_user}","gists_url":"https://api.github.com/users/mike1808/gists{/gist_id}","starred_url":"https://api.github.com/users/mike1808/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mike1808/subscriptions","organizations_url":"https://api.github.com/users/mike1808/orgs","repos_url":"https://api.github.com/users/mike1808/repos","events_url":"https://api.github.com/users/mike1808/events{/privacy}","received_events_url":"https://api.github.com/users/mike1808/received_events","type":"User","site_admin":false},"created_at":"2015-10-15T12:43:47Z","updated_at":"2015-10-15T12:43:47Z","body":"@vkarpov15 thank you. It worked. The issue can be closed now."}}