ZJONSSON / node-etl

npm install etl
233 stars 49 forks source link

Mongo "pushResults" option #119

Open aterna01 opened 3 years ago

aterna01 commented 3 years ago

Hi and thank you for the package! Observed a small typo in the readMe. As per docs if want to stream down the result of the mongo operation then need to pass extra option {"pushResults": true}. However the correct option is {"pushResult": true}

.pipe(etl.mongo.update(collection, ["_id"], {"pushResult": true}))
.pipe(etl.map(mongoResult => {

}))