My document looks like this:
{ "_id" : ObjectId("5e7d8e07d368d2222143a737"), "StartTime" : ISODate("2020-03-27T05:24:22.547Z"), "TrainingStatus" : "running" }
I want the last inserted document. Or maybe if I can sort all documents on the basis of StartTime, I can get the vastest document.
I have tried a lot of queries but it's not working in R (mongolite).
My document looks like this:
{ "_id" : ObjectId("5e7d8e07d368d2222143a737"), "StartTime" : ISODate("2020-03-27T05:24:22.547Z"), "TrainingStatus" : "running" }
I want the last inserted document. Or maybe if I can sort all documents on the basis of StartTime, I can get the vastest document. I have tried a lot of queries but it's not working in R (mongolite).