After watching the lecture, I don’t understand why its not all the options given.
- The upsert option is set to false by default
- The upsert option is used with the update operator and needs to have its value specified every time that the update operator is called
- When upsert is set to true and there is no result from the query then the update operation inserts a new document using the query and update predicates
- When upsert is set to false and there is no result from the query then no updated documents occur
What is it that I am misunderstanding with upserts? Is it a definitional rationale between update operator versus update methods? Is it because the option narrows it to only update and not updateOne and updateMany?