MongoDB C100DBA Exam - Topic 1 Question 19 Discussion
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?
D) Specify {upsert : true } as the third parameter of update command
A) upsert command instead of update command
B) This has to be handled in application code (Node.js, PHP, JAVA, C#, etc.) and cannot be handled in mongo shell query
C) {update: true, insert: true} as the third parameter of update command
Phil
8 months agoJin
8 months agoJeniffer
9 months agoYoulanda
9 months agoEttie
9 months agoKimbery
9 months agoEden
9 months agoHolley
9 months agoRobt
9 months agoTijuana
9 months agoPaz
9 months agoNohemi
9 months ago