[DOCS-10618] Comment on: "manual/tutorial/update-documents" Created: 02/Aug/17  Updated: 30/Oct/23

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Bug Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: collector-298ba4e7, docs-triage
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Java, MacOS, chrome

Location: https://docs.mongodb.com/manual/tutorial/update-documents/#Updating-%7B%7Bupserts%7D%7D
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
Screen Resolution: 1440 x 900


Participants:
Days since reply: 1 year, 14 weeks, 2 days ago
Epic Link: DOCSP-1769

 Description   

If Morphia code was included, it could be more helpful
I could not get insert method(failing if id exists, rather than save method) in Morphia's Datastore, later going through code I found out that Morphia creates AdvancedDatastore(which extends Datastore and contains insert method) and returns it as Datastore. So I needed to typecast datastore and use methods from advanced interface!



 Comments   
Comment by Education Bot [ 31/Oct/22 ]

Hello! This ticket has been closed due to inactivity. If you believe this ticket is still important, please reopen it and leave a comment to explain why. Thank you!

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