Data in MongoDB has a flexible schema. Unlike SQL databases, where you must determine and declare a table’s schema before inserting data. True or false?
true
false
No tests found
MongoDB is specified as SQL database. True or false?
Which of the command is used to display results in an easy-to-read format?
pretty()
formatter()
json()
()
format()
The following query specifies a sort in:
db.orders.find().sort( { amount: 1 } )
ascending order
descending order
db.orders.find().sort( { amount: -1 } )
Fill the blank to specify the order in which the query returns matching documents.
db.find().({ amount: -1 })
Fill the blank to to specify the maximum number of documents that should be returned.
db.find().(10)
Which of the command is used to query data from MongoDB collection?
db.products.select()
db.products.search()
db.products.find()
db.products.selectAll()
Which of the command can be used to insert a new document?
db.students.insert()
db.students.add()
db.students.create()
db.students.save()
db.save():
db.save()
Insert a new document into the collection
Update a single existing document in the collection
Insert either a new document or update an existing document in the collection
Insert multiple new documents into the collection
«12»