Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Whathappens if you set the $out stage to output to acollection that already exists?
What
happens if you set the $o
stage to output to a
collection that already exists?
A new database with the specified name of thecollection is created.
A new database with the specified name of the
collection is created.
The existingcollection is erased and replaced with the outputted documents.
The existing
collection is erased and replaced with the outputted documents.
An error is returned, and the existing collection isnot modified.
An error is returned, and the existing collection is
not modified.
A second collection with "_1" appended tothe name is created.
A second collection with "_1" appended to
the name is created.
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!