@@ -175,7 +175,7 @@ to modify an update operation:
175
175
results. For more information, see :manual:`Collation </reference/collation/#std-label-collation>`
176
176
in the MongoDB Server manual.
177
177
178
- * - ``comment(Bson comment)``
178
+ * - ``comment(BsonValue comment)``
179
179
- | Attaches a ``Bson`` comment to the operation. For more information, see the :manual:`insert command
180
180
fields </reference/command/insert/#command-fields>` guide in the
181
181
MongoDB Server manual.
@@ -190,7 +190,7 @@ to modify an update operation:
190
190
For more information, see the :manual:`hint statement </reference/command/update/#std-label-update-command-hint>`
191
191
in the MongoDB Server manual.
192
192
193
- * - ``hint (String hint)``
193
+ * - ``hintString (String hint)``
194
194
- | Sets the index for the operation as a ``String`` value.
195
195
For more information, see the :manual:`hint statement </reference/command/update/#std-label-update-command-hint>`
196
196
in the MongoDB Server manual.
@@ -202,6 +202,13 @@ to modify an update operation:
202
202
</reference/command/update/#std-label-update-let-syntax>` in the
203
203
MongoDB Server manual.
204
204
205
+ * - ``sort(Bson sort)``
206
+ - | Sets the sort criteria to apply to the operation. If multiple
207
+ documents match the query filter that you pass to the
208
+ ``updateOne()`` method, the operation updates the first
209
+ result. You can set this option to apply an order to matched
210
+ documents to have more control over which document is updated.
211
+
205
212
* - ``upsert(Boolean upsert)``
206
213
- | Specifies whether the update operation performs an upsert operation if no
207
214
documents match the query filter. For more information, see the :manual:`upsert
@@ -271,13 +278,13 @@ API Documentation
271
278
To learn more about any of the methods or types discussed in this
272
279
guide, see the following API documentation:
273
280
274
- - `updateOne() <https://mongodb.github.io/mongo-java-driver/5.1/apidocs /mongodb-driver-reactivestreams/com/mongodb/reactivestreams/client/MongoCollection.html#updateOne(com.mongodb.reactivestreams.client.ClientSession,org.bson.conversions.Bson,java.util.List)>`__
281
+ - `updateOne() <{+api+} /mongodb-driver-reactivestreams/com/mongodb/reactivestreams/client/MongoCollection.html#updateOne(com.mongodb.reactivestreams.client.ClientSession,org.bson.conversions.Bson,java.util.List)>`__
275
282
- `updateMany()
276
- <https://mongodb.github.io/mongo-java-driver/5.1/apidocs /mongodb-driver-reactivestreams/com/mongodb/reactivestreams/client/MongoCollection.html#updateMany(com.mongodb.reactivestreams.client.ClientSession,org.bson.conversions.Bson,java.util.List)>`__
283
+ <{+api+} /mongodb-driver-reactivestreams/com/mongodb/reactivestreams/client/MongoCollection.html#updateMany(com.mongodb.reactivestreams.client.ClientSession,org.bson.conversions.Bson,java.util.List)>`__
277
284
- `UpdateOptions
278
- <https://mongodb.github.io/mongo-java-driver/5.1/apidocs /mongodb-driver-core/com/mongodb/client/model/UpdateOptions.html>`__
279
- - `UpdateResult <https://mongodb.github.io/mongo-java-driver/5.1/apidocs /mongodb-driver-core/com/mongodb/client/result/UpdateResult.html>`__
285
+ <{+api+} /mongodb-driver-core/com/mongodb/client/model/UpdateOptions.html>`__
286
+ - `UpdateResult <{+api+} /mongodb-driver-core/com/mongodb/client/result/UpdateResult.html>`__
280
287
- `BsonValue
281
- <https://mongodb.github.io/mongo-java-driver/5.1/apidocs /bson/org/bson/BsonValue.html>`__
288
+ <{+api+} /bson/org/bson/BsonValue.html>`__
282
289
- `Collation
283
- <https://mongodb.github.io/mongo-java-driver/5.1/apidocs /mongodb-driver-core/com/mongodb/client/model/Collation.html>`__
290
+ <{+api+} /mongodb-driver-core/com/mongodb/client/model/Collation.html>`__
0 commit comments