Insert#
- amongoc_emitter [[type(amongoc_write_result)]] amongoc_insert_ex(
- amongoc_collection *coll,
- const bson_view *documents,
- size_t n_docs,
- amongoc_insert_params const *[[nullable]] params,
- amongoc_emitter [[type(amongoc_write_result)]] amongoc_insert_one(
- amongoc_collection *coll,
- bson_view doc,
- amongoc_insert_params const *[[nullable]] params,
Insert data into the collection. Resolves with an
amongoc_write_result
.- Parameters:
coll – Pointer to a collation to be updated.
documents – Pointer to a document or array of documents to be inserted.
n_docs – Number of documents pointed-to by
documents
params – Named parameters for the insert operation.
See also
-
struct [[zero_initializable]] amongoc_insert_params#
-
bool bypass_document_validation#
-
bool ordered#
-
bson_value_ref comment#
See also
-
bool bypass_document_validation#