Which option can be used with update command so that a new document gets created if no matching document is found based on the query condition?

Which option can be used with update command so that a new document gets created if no matching document is found based on the query condition?
A . upsert command instead of update command
B . {update: true, insert: true} as the third parameter of update command
C . This has to be handled in application code (Node.js, PHP, JAVA, C#, etc.) and cannot be handled in mongo shell query
D . Specify {upsert : true } as the third parameter of update command

Answer: D

Latest C100DBA Dumps Valid Version with 132 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments