SYNOPSIS
bool mongoc_collection_save (mongoc_collection_t *collection, const bson_t *document, const mongoc_write_concern_t *write_concern, bson_error_t *error);
DESCRIPTION
The mongoc_collection_save() function shall save a document into a collection. If the document has an _id field it will be updated. Otherwise it will inserted.
RETURN VALUE
The mongoc_collection_save() function returns a true if successful.
ERRORS
errors are returned through error
SEE ALSO
AUTHORS
This page was written by MongoDB Inc.