.\" Man page generated from reStructuredText. . .TH "MONGOC_BULK_OPERATION_UPDATE_ONE" "3" "Jun 04, 2021" "1.17.6" "libmongoc" .SH NAME mongoc_bulk_operation_update_one \- mongoc_bulk_operation_update_one() . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .SH SYNOPSIS .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C void mongoc_bulk_operation_update_one (mongoc_bulk_operation_t *bulk, const bson_t *selector, const bson_t *document, bool upsert); .ft P .fi .UNINDENT .UNINDENT .sp This function queues an update as part of a bulk operation. It will only modify a single document on the MongoDB server. This function does not execute the operation. To execute the entirety of the bulk operation call \fBmongoc_bulk_operation_execute()\fP\&. .sp This function is superseded by \fBmongoc_bulk_operation_update_one_with_opts()\fP\&. .SH PARAMETERS .INDENT 0.0 .IP \(bu 2 \fBbulk\fP: A \fBmongoc_bulk_operation_t\fP\&. .IP \(bu 2 \fBselector\fP: A \fI\%bson_t\fP that selects which document to remove. .IP \(bu 2 \fBdocument\fP: A \fI\%bson_t\fP containing the update document. .IP \(bu 2 \fBupsert\fP: \fBtrue\fP if an \fBupsert\fP should be performed. .UNINDENT .sp \fBWARNING:\fP .INDENT 0.0 .INDENT 3.5 \fBdocument\fP \fImust only\fP contain fields whose key starts with \fB$\fP\&. See the update document specification for more details. .UNINDENT .UNINDENT .SH SEE ALSO .sp \fBmongoc_bulk_operation_update()\fP .sp \fBmongoc_bulk_operation_update_one_with_opts()\fP .SH AUTHOR MongoDB, Inc .SH COPYRIGHT 2017-present, MongoDB, Inc .\" Generated by docutils manpage writer. .