Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for change streams #97

Open
adrian-gierakowski opened this issue Apr 23, 2019 · 2 comments
Open

support for change streams #97

adrian-gierakowski opened this issue Apr 23, 2019 · 2 comments

Comments

@adrian-gierakowski
Copy link

adrian-gierakowski commented Apr 23, 2019

would be nice to have equivalents of db.watch and db.collection.watch

Looking at spec it seems like those methods are implemented by client libraries using aggregation under the hood (with first pipeline stage being $changeStream). Based on this, I guess it should be relatively easy to add first class support for changes streams in this library. Do you foresee any difficulties?

@TomMD
Copy link

TomMD commented Aug 29, 2019

I'd love to hear the maintainer's thoughts on supporting change streams and belief on scope of effort if it needs to be an external contribution.

@VictorDenisov
Copy link
Member

The driver has support of commands. Aggregation pipelines are just a command. So if anyone needs streams they can be implemented even outside of the driver. If the code turns out to be generic enough we'll be happy to merge it to the driver's codebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants