Home »
MCQs »
MEAN Stack MCQs
Which of the following function is used to add one document to a collection?
33. Which of the following function is used to add one document to a collection?
- addOne()
- appendOne()
- insertOne()
Answer: C) insertOne()
Explanation:
The insertOne() function is used to add one document to a collection.