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")}
![](https://secure.gravatar.com/avatar/9e198b4e4260221ea59e2918cd00c294?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
-
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.