Forum Discussion
Unable to query GraphQL many-to-many relationships
- 7 months ago
Hi patto_uon,
This behavior is caused by a current limitation in Fabric’s GraphQL layer, not an issue with your data model. While Fabric lets you visually set up a many-to-many relationship using a pure junction table, the GraphQL runtime can’t always resolve these implicit M2M paths during queries. Because your xref_party_email table only has foreign keys and no extra fields, it isn’t treated as a concrete entity in traversal, which leads to the “destination cannot be found” error. Modeling the structure as two explicit one-to-many relationships ensures each step is backed by a real table and foreign key, allowing GraphQL to resolve the path. Until Fabric GraphQL fully supports traversing auto-generated many-to-many relationships, it’s best to treat the junction table as a first-class entity and query through it (Party - xref_party_email - Email) instead of using the implicit M2M abstraction.
Thank you.
Hi v-sgandrathi, thanks very much for the quick response.
Just to confirm, is this the same issue?
https://support.fabric.microsoft.com/known-issues/?active=true&fixed=true&sort=published&product=Data%2520Engineering&issueId=1700
If so, I would think that the documentation for creating GraphQL relationships should explicitly call out this limitation until it is resolved, as it contradicts the actual functionality available:
Manage relationships in Fabric API for GraphQL - Microsoft Fabric | Microsoft Learn