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 Database
Created by Guest
Created on Jan 13, 2024

Include or flag nodes seen more than once / duplicates when traversing with $graphLookup

When traversing a graph with $graphLookup, we suppress duplicates (in cases of cycles). It would be useful to have an option to include a flag indicating a node that caused the traversal to stop due to duplication.
  • Attach files
  • Guest
    Jan 15, 2024
    Having this capability would remove a lot of post processing from $graphLookup output. There is a Jira ticket for this already @ https://jira.mongodb.org/browse/SERVER-26294