Question: Consider the collection myycol has the following data. { _ id : ObjectId ( 5 9 8 3 5 4 8 7 8

Consider the collection myycol has the following data.
{"_id" : ObjectId(5983548781331adf45ec5), "title":"MongoDB Overview"}
{"_id" : ObjectId(5983548781331adf45ec6), "title":"NoSQL Overview"}
{"_id" : ObjectId(5983548781331adf45ec7), "title":"Tutorials Point Overview"}
What does the following code result in:
db.mycol.find({},{"title":1,_id:0}).sort({"title":-1})
Title in descending order, _id in ascending order
Title in descending order, _id in descending order
Title in descending order, _id not displayed not listed
Title in ascending order, _id not displayed not listed

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!