diff --git a/lib/collection.js b/lib/collection.js index a45e4d3b85..9b0e8b45c7 100644 --- a/lib/collection.js +++ b/lib/collection.js @@ -278,7 +278,7 @@ Object.defineProperty(Collection.prototype, 'hint', { } }); -const DEPRECATED_FIND_OPTIONS = ['maxScan', 'fields', 'snapshot']; +const DEPRECATED_FIND_OPTIONS = ['maxScan', 'fields', 'snapshot', 'oplogReplay']; /** * Creates a cursor for a query that can be used to iterate over results from MongoDB diff --git a/lib/cursor.js b/lib/cursor.js index bed709be35..9b7b1aae98 100644 --- a/lib/cursor.js +++ b/lib/cursor.js @@ -85,7 +85,6 @@ const fields = ['numberOfRetries', 'tailableRetryInterval']; * collection.find({}).filter({a:1}) // Set query on the cursor * collection.find({}).comment('add a comment') // Add a comment to the query, allowing to correlate queries * collection.find({}).addCursorFlag('tailable', true) // Set cursor as tailable - * collection.find({}).addCursorFlag('oplogReplay', true) // Set cursor as oplogReplay * collection.find({}).addCursorFlag('noCursorTimeout', true) // Set cursor as noCursorTimeout * collection.find({}).addCursorFlag('awaitData', true) // Set cursor as awaitData * collection.find({}).addCursorFlag('partial', true) // Set cursor as partial