InsertOne
class InsertOne<Document : Any> : AbstractBsonNode, Command, AvailableInBulkWrite<Document> (source)
Inserting a single element in a collection.
Example
users.insertOne(User(name = "Bob", age = 18))
Content copied to clipboard
External resources
See also
Options
Constructors
Properties
Functions
Link copied to clipboard
Writes the result of simplifying to a new Bson.
Link copied to clipboard
Writes the result of simplifying this expression into writer.