Mongoose: Change Streams and Mongoose

Created on 10 Dec 2017  路  9Comments  路  Source: Automattic/mongoose

Thoughts on how/when Change Streams (now released in 3.6) will be implemented in Mongoose?
5.0?

Or a release before?

docs

Most helpful comment

It'll be good to have mongoose-specific docs for this. The closest thing we have right now is a blog post on the subject

All 9 comments

Planning on releasing 5.0.0-rc0 in the next couple weeks, which will use mongodn driver 3.x. We currently do not have any plans to build features on top of the drives change streams support. Please follow mongoose on Twitter: https://twitter.com/mongoosejs?s=09 or join our slack channel for updates

@MDrooker Mongoose does support Change Streams in 5.0. Docs are are here: https://docs.mongodb.com/manual/changeStreams/

Hi there. Are there docs for this? Can you do collection.watch({ fullDocument: 'updateLookup' }); I am keen to use it into a AWS Lambda function and replicate changes to S3 for Redshift ingestion.

@mattdone01 You asked "Are there docs for this?", but the the previous comment said "Docs are here" and provided a link. Did you follow the link?

I sure did. The Link provided doesn't go anywhere.

@mattdone01 As @vkarpov15 says, the underlying driver is used for this feature, which is documented here: https://docs.mongodb.com/manual/changeStreams/ You can select the "Node.js" tab.

It'll be good to have mongoose-specific docs for this. The closest thing we have right now is a blog post on the subject

Hi I am getting this error while trying to connect through replica and mongoose
Error: failed to start mongod with options --port=27018,--dbpath=/home/Documents
/publicapis_db/src/data/db,--bindip=127.0.0.1,--replSet=rs,--bind_ip=localhost

@proworkdev can you show the code you're using? Is it the same code as from the blog post?

Also, does '/home/Documents/publicapis_db/src/data/db' exist? If not, you'll need to create that directory.

Was this page helpful?
0 / 5 - 0 ratings