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

extrace raw fullDocument from changed stream #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

shory152
Copy link

@shory152 shory152 commented Apr 21, 2022

returning raw fullDocument is very useful for migrating changed stream from a mongodb to another, it can ensure the order of fields will not be changed.

@rwynn
Copy link
Owner

rwynn commented Apr 23, 2022

Thanks for the contribution! This makes sense. Request: Can you change the field name fromRawFullDoc to simply BSONDoc? I think I can merge it otherwise.

@rwynn
Copy link
Owner

rwynn commented Apr 23, 2022

Actually, also can you make the type bson.Raw on Op also instead of interface{}? That would make it easier for cosumers to unmarshal I think.

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

Successfully merging this pull request may close these issues.

2 participants