• +91 9723535972
  • info@interviewmaterial.com

MongoDB Interview Questions and Answers

Question - What is the syntax of the limit() and sort() method?

Answer -

Syntax of the limit() method is:

  • >db.COLLECTION_NAME.find().limit(NUMBER)
 Syntax of the sort() method is:

  • >db.COLLECTION_NAME.find().sort({KEY:1})

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners