We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I'm facing this issue: when a query uses an alias of a type declared in multiple nodes returns null.
Schema Node 1:
extend type Query { list: PageInfo } type User @key(fields: "id") { id: ID! name: String } type PageInfo { edges: [User] }
Schema Node 2:
type PageInfo { edges: [User] } type User @key(fields: "id") @extends { id: ID! @external }
The query used without an alias:
{ list { edges {id name}} }
return the data:
{ data: { list: { edges: [{id: 1, ....] } } }
Calling instead
{ list { items: edges {id name}} }
returns
{ data: { list: { items: null } } }
The erro occur only if the type PageInfo is required multiple times.
PageInfo
If the PageInfo declaration is removed from the second node, everything works fine.
I've recreated the error in this test: https://github.com/mercurius-js/mercurius/pull/744/files
The text was updated successfully, but these errors were encountered:
error: add test to replicate #743 error
58cdab2
Successfully merging a pull request may close this issue.
Hi,
I'm facing this issue: when a query uses an alias of a type declared in multiple nodes returns null.
Schema Node 1:
Schema Node 2:
The query used without an alias:
return the data:
Calling instead
returns
The erro occur only if the type
PageInfo
is required multiple times.If the
PageInfo
declaration is removed from the second node, everything works fine.I've recreated the error in this test: https://github.com/mercurius-js/mercurius/pull/744/files
The text was updated successfully, but these errors were encountered: