Hello,
I'm a total nubie with MongoDB and need to find the largest record based on character count.
What is the query which will display the ObjectId of the record and it's character count from the largest record to the smallest record?
_id = 55678 char count = 15
_id = 6578 char count = 11
_id = 1234 char count = 10
Thanks,
CHill
===============================
XML Record format appears below:
"_id" ObjectId("1234");
"fruit" : {
"fruit1" : "apple",
"fruit2" : "orange",
"fruit3" : "pear",
}
"_id" ObjectId("55678");
"fruit" : {
"fruit1" : "blueberry",
"fruit2" : "orange",
"fruit3" : "pear",
}
"_id" ObjectId("6578");
"fruit" : {
"fruit1" : "apple",
"fruit2" : "orange",
"fruit3" : "banana",
}