[JAVA-1840] Document the equivalent of the save method in MongoCollection Created: 25/May/15  Updated: 25/Jul/15  Resolved: 23/Jun/15

Status: Closed
Project: Java Driver
Component/s: Documentation
Affects Version/s: 3.0.1
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Jeffrey Yemin Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to JAVA-1904 Add .save and .saveMany to MongoColle... Closed

 Description   

This is the idiom:

   collection.replaceOne(Filters.eq("_id", doc.get("_id")), doc, new UpdateOptions().upsert(true));



 Comments   
Comment by Jeffrey Yemin [ 23/Jun/15 ]

Looks like we're going to add save and saveMany to MongoCollection, so this isn't going to be necessary.

Generated at Thu Feb 08 08:55:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.