How can you enter multi line operations in the mongo shell?



How can you enter multi line operations in the mongo shell?..

Answer / Vandana Kumari

To enter multi-line operations in the MongoDB shell, you can enclose the block of code between curly braces `{}` and end each line with a semicolon. Pressing Enter after the last semicolon will execute the entire block.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More MongoDB Interview Questions

How to install mongodb on our machine?

1 Answers  


How many text indexes can a mongodb collection have?

1 Answers  


What are the different methods to insert document?

1 Answers  


Which operations lock the database in mongodb?

1 Answers  


Why mongodb is faster?

1 Answers  


What is difference between mysql and mongodb?

1 Answers  


Is mongodb a sql database?

1 Answers  


How do I start mongodb in ubuntu?

1 Answers  


What is a ‘namespace’?

1 Answers  


What is orm mongodb?

1 Answers  


Is mongodb big data?

1 Answers  


Is it possible to remove old files in the movechunk directory?

1 Answers  


Categories