Skip to content

extrace raw fullDocument from changed stream#29

Open
shory152 wants to merge 1 commit intorwynn:masterfrom
shory152:master
Open

extrace raw fullDocument from changed stream#29
shory152 wants to merge 1 commit intorwynn:masterfrom
shory152:master

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