Find related MongoDB records by ID

Start with an ID from an incident or a support ticket. Find its collection, inspect a related record, and return to the same selection and scroll position.

Find the exact identifier

Use Find by ID or Quick open and paste the ID. Check the value type, collection and matched field in the results. A string and an ObjectId with the same characters are different keys.

Search covers eligible accessible collections and recognized indexed reference fields. If several collections match, choose by namespace and field. A result list with no entries is scoped to the sources that could be searched.

Follow a customer to an order and SKU

  1. Select Tessa Morgan in acme.customers. Open the inspector’s Related records and choose order ORD-1076.
  2. In the order’s Related tab, open View line items. On line 2 choose the SKU and Find orders containing this SKU. Inspect a matching order.
  3. Use Back to return to the line item and then to Tessa. The original customer grid keeps its query, sort, selection and scroll position.
KeplerGrid’s document inspector showing the line items for Tessa’s sample order
The order’s related line items open beside the originating customer grid.

Map references in your database

In Manage relationships, map a reference such as orders.customer_id to customers._id in the same database. Reverse lookups need an index beginning with the reference field. Relationships use saved values when a document has pending edits.

For a nested array, right-click its cell and select Open as table. Rows retain array order, missing and null values, and BSON types. Inspect a row’s JSON, then go back to the same row.

Save, pin and recheck a working view

Run the query and choose Library → Saved views → Save current view. Reopening the view reads current results and restores sort, projection, Find text, displayed columns and inspector settings. To search across all matching pages, use a column header’s Equals or Starts with. Local Find searches the loaded page.

Pin the view and choose Recheck. The first check establishes a baseline. Later checks show current and previous counts and, when retained, which IDs entered or left. Each check can retain up to 100 matches within 32 KiB. Views and time-series collections support count comparisons. A temporary connection’s views last for the session.