-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Docs
-
Labels:None
Description
When looking at https://docs.mongodb.com/manual/changeStreams/#resume-a-change-stream the Node.js example has the following code where the resumeAfter is the only word in the document
newChangeStream = collection.watch({ resumeAfter }); newChangeStream.on('change', next => { // process next document });
While I believe it was meant to be:
newChangeStream = collection.watch({ "resumeAfter" : resumeToken }); newChangeStream.on('change', next => { // process next document });
FYI
Scope of changes
- Update snippet in NodeJS /test/examples/change_streams.js