-
Notifications
You must be signed in to change notification settings - Fork 29
DOCSP-49237: bson vector subtype #152
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
DOCSP-49237: bson vector subtype #152
Conversation
✅ Deploy Preview for docs-ruby ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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.
I think this is better to always use the full class name, with BSON::
prefix
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.
Some suggestions:
source/data-formats/bson.txt
Outdated
You can convert ``Vector`` and array objects to ``BSON::Binary`` objects | ||
so they are serialized as BSON binary vector (subtype 9) instances. Use | ||
the ``Binary.from_vector`` method, as shown in the following code: |
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.
You could include a link back up to the BSON:Binary section (maybe overkill)
But does the the list of valid subtypes from the Binary section need to be updated to include :vector
as a possible type? Might be a good opportunity to review the list for completeness.
Pull Request Info
PR Reviewing Guidelines
JIRA - https://jira.mongodb.org/browse/DOCSP-49237
Staging Links
Self-Review Checklist