Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b191b70

Browse files
committed
Update change stream pipe
1 parent a82e194 commit b191b70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎changeStreams.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ async function monitorListingsUsingStreamAPI(client, timeInMs = 60000, pipeline
138138
const changeStream = collection.watch(pipeline);
139139

140140
// See https://mongodb.github.io/node-mongodb-native/3.6/api/ChangeStream.html#pipe for the pipe() docs
141-
changeStream.pipe(
141+
changeStream.stream().pipe(
142142
new stream.Writable({
143143
objectMode: true,
144144
write: function (doc, _, cb) {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /