You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
interfaceComment {
""" The body rendered to text. """bodyText: String!""" The Node ID of the Comment object """id: ID!
}
Expected Result
The correct query plan is being returned! This works perfectly when I directly fetch data from a type that implements that interface or when I simply retrieve the ID.
AM ERROR internal error {"error": "1 error occurred:\n\t* could not resolve a field: internal: nodesResolvableVisitor: could not select the datasource to resolve Repository.__typename on path query.repository.__typename\n\n"}
The text was updated successfully, but these errors were encountered:
WunderGraph commits fully to Open Source and we want to make sure that we can help you as fast as possible.
The roadmap is driven by our customers and we have to prioritize issues that are important to them.
You can influence the priority by becoming a customer. Please contact us here.
I am facing similar issue as well where __typename required on interface object when fetching Id. If we are fetch other attributes of interface, then its working as expected.
For instance: SubGraph A
interface A {
a1Field: ID!
a2Field: String
a3Field: String
}
type XA implements A {
a1Field: ID!
a2Field: String
a3Field: String
xa1Field: String
}
type XB implements A {
a1Field: ID!
a2Field: String
a3Field: String
xb1Field: String
}
SubGraph B
type B {
b1Field: ID!
b2Field: String
a: A!
}
query details:
query Test {
b(id: ID!) {
b1Field
b2Field
a {
a1Field
}
}
}
The above query returns following error: Subgraph 'B' returned invalid value 'A' for __typename field.
Component(s)
router
router version
v0.0.0-20240927172855-3e390cd5cf6c
What happened?
Description
The router is encountering an error when I try to retrieve the query plan for queries that directly fetch data from interfaces.
Steps to Reproduce
Execute a query like this:
where the
Comment
is an interface and not a type.Expected Result
The correct query plan is being returned! This works perfectly when I directly fetch data from a type that implements that interface or when I simply retrieve the ID.
Actual Result
We are getting a execution plan failure.
Environment information
I am using the following headers:
Log output
The text was updated successfully, but these errors were encountered: