Allow following a referenced ObjectID to the associated document
I have documents that reference other documents in other collections using the ObjectId. It would be really helpful if I could follow these references in Compass to the associated document.
For example, if I find a specific document by using the standard Filter/Find mechanism in Compass. From there I see that some of the fields in a given document reference another ObjectID (potentially in a different collection)
It would be nice to have an available action (maybe an action icon?) that would take me to the related document.
Currently I have to copy the desired object ID, switch to the other collection, and then do the second find with something like {"_id": ObjectId("62c9b444de386b2551756a56")}
-
Dylan commented
I don't like that double clicking the ObjectId switches to editing the doc. Sometimes, I'm editing the ObjectId, but most of the time, I'm trying to select the text.
Maybe, right-click should open a context menu with a list of the DB's collections, so that, when we choose one, Compass automatically opens another tab for that collection with the {_id: ObjectId("")} query filled in and submitted.
-
Brian commented
Agreed completely. I'm using a db with lots of interlinked connections via ObjectIDs, so I'm frequently copying an ObjectID value, opening a new tab, finding the collection the ObjectID is in (which luckily I know, but if I didn't it would be even harder), and entering a filter on the ObjectID. Lots of frummery for something that should be as easy as clicking a link on a web page.
-
Jonathan commented
Yes! Please, this would make my work-flow so much easier. Much better UX.