You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The BSON library does not have a class for UUID. Currently users of the MongoDB node.js driver are using the uuid-mongodb package. Using the 3rd party package, creating an object will look like:
Schema
A schema with a UUID property:
Creating objects with UUID
The BSON library does not have a class for UUID. Currently users of the MongoDB node.js driver are using the uuid-mongodb package. Using the 3rd party package, creating an object will look like:
When a proper UUID class is added to the BSON library, we imagine that we should use the following instead:
The above API for creating a new object will be consistent with the API for both ObjectId and Decimal128 (also from the BSON library).
The text was updated successfully, but these errors were encountered: