I'm using MongoDB Compass v1.26 and I have some collections with lat/long data, but they looks like this:
"coordinates": {
"latitude": "43.0818",
"longitude": "-87.892"
}
It does not pick it up in the schema > analyze to show as a map. I think it needs to be an array.
However, using the tool, I can only filter, project, sort, etc. So, I can't run a query to { $objectToArray: <object> }
other than storing a converted copy of the entire collection.