1.

Command to check existence of collection is _____________(a) show collection(b) show collections(c) show collect(d) none of the mentionedThis question was addressed to me in final exam.This is a very interesting question from Getting Started with MongoDB topic in division MongoDB CRUD Concepts and Operation of MongoDB

Answer»

The CORRECT option is (B) SHOW collections

To explain: The MONGO shell will return the list of the collections in the current database.



Discussion

No Comment Found

Related InterviewSolutions