Insert a value into a collection. Adds an _id field to the value if one is not provided using the bson ID generator (similar to MongoDB IDs).
bson
the context to use
name of the collection
value to insert
a copy of the inserted value, with appended _id field if not provided
_id
when an item with the same _id already exists
Generated using TypeDoc
Insert a value into a collection. Adds an _id field to the value if one is not provided using the
bson
ID generator (similar to MongoDB IDs).