Skip to Main Content

MongoByte MongoDB Logo

Welcome to the new MongoDB Feedback Portal!

{Improvement: "Your idea"}
We’ve upgraded our system to better capture and act on your feedback.
Your feedback is meaningful and helps us build better products.

Status Submitted
Categories Compass
Created by Guest
Created on Jul 28, 2022

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")}`
  • Attach files
  • Guest
    Feb 20, 2024
    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.
  • Guest
    Sep 18, 2023
    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.
  • Guest
    Apr 25, 2023
    Yes! Please, this would make my work-flow so much easier. Much better UX.