What is the syntax of mongodb collection?



What is the syntax of mongodb collection?..

Answer / Radheshyam Pathak

In MongoDB, collections are created using the 'createCollection()' method or by inserting documents into a non-existing collection. For example: nndb.createCollection('myCollection')

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More MongoDB Interview Questions

What is difference between mysql and mongodb?

1 Answers  


What are the difference between sql and mongodb? Explain

1 Answers  


What is better mysql or mongodb?

1 Answers  


What is mongodb compass?

1 Answers  


How much does mongodb cost?

1 Answers  


What is the “__v” field in mongoose?

1 Answers  


What is aggregation in mongodb?

1 Answers  


Why is mongodb called mongodb?

1 Answers  


What is dynamic schema in mongodb?

1 Answers  


What types of locking use in mongodb?

1 Answers  


Why is it called mongodb?

1 Answers  


How do I do transactions/locking in mongodb?

1 Answers  


Categories