You are comparing values of different BSON types in mongodb. You want to compare from lowest to highest. Which comparison order is used?
Consider the following example document:
{
"_id": Objectld("5360c0a0a655a60674680bbe"),
"user"
"login": "irOn"
"description": "Made of steel"
"date": ISODate("2014-04-30T09:16:45.836Z"),
}
>
and index creation command:
db.users.createlndex( { "user.login": 1, "user.date": -1 }, "mylndex" )
When performing the following query:
db.users.find( { "user.login": /Air.*/ },
{ "user":1, "_id":0 > ).sort( { "user.date":1 > )
which of the following statements correctly describe how MongoDB will handle the query? Check all that apply.
Which of the following needs to be performed prior to initiate backup on a sharded cluster?
MongoDB is
Below is a sample document of "orders" collection
Which of the following command is used to get all the indexes on a collection?
Which of the following operator can be used to limit the number of documents in an array field of a document after an update is performed?
Which of the following commands can cause the database to be locked?
Which option should be used to update all the documents with the specified condition in the MongoDB query?
In a sharded cluster, from which node does one stop the balancer process before initiating backup?