-
Notifications
You must be signed in to change notification settings - Fork 891
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
GODRIVER-2819 Decode document into bson.D if there is no type info. #1682
Conversation
API Change Report./bsonincompatible changes(*DecodeContext).DefaultDocumentD: removed ./mongo/optionsincompatible changesBSONOptions.DefaultDocumentD: removed |
e33faf2
to
9f3cc22
Compare
@@ -108,6 +108,7 @@ func (ce *ClientEncryption) CreateEncryptedCollection(ctx context.Context, | |||
} | |||
r := bson.NewValueReader(efBSON) | |||
dec := bson.NewDecoder(r) | |||
dec.DefaultDocumentM() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hopefully, this is the only place to add DefaultDocumentM
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! 👍
3492ed7
GODRIVER-2819
Summary
Decode document into
bson.D
if there is no type info.