Skip to content

Commit

Permalink
feat: deprecate oplogReplay for find commands
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst committed Feb 13, 2020
1 parent 8b8a20c commit 24155e7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion lib/collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion lib/cursor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 24155e7

Please sign in to comment.