MongoDB
C100DBA · Question #91
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?
Sign in or unlock C100DBA to reveal the answer and full explanation for question #91. The question stem and answer options stay visible for context.
MongoDB Fundamentals
Question
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?
Options
- Aupsert command instead of update command
- B{update: true, insert: true} as the third parameter of update command
- CThis has to be handled in application code (Node.js, PHP, JAVA, C#, etc.) and cannot be handled in
- DSpecify {upsert : true } as the third parameter of update command
Unlock C100DBA to see the answer
You've previewed enough free C100DBA questions. Unlock C100DBA for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#upsert#update options#insert if not exists