Skip to content
New issue

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

error : not able to download schema having union type #197

Closed
WISKesarkar opened this issue Jun 30, 2023 · 3 comments · Fixed by #207
Closed

error : not able to download schema having union type #197

WISKesarkar opened this issue Jun 30, 2023 · 3 comments · Fixed by #207
Labels
bug Something isn't working

Comments

@WISKesarkar
Copy link

While working on POC for GQL federation to support multiple gql apis under one service.
I found out nautius/gateway library fails to download schema with union types in it.

for testing Please refer this POC-example

Issue :

  • serviceB gql schema has union named UnionTypeTest, service schema is downloaded using get-graphql-schema cli (schema is available in serviceB package and has union field with correct member types)
  • When gatwayTest.go tries to fetch the schema from nautilus/gatway it fails to grab schema for union members and GQL Playground throws attached error.

Screenshot 2023-06-30 at 19 57 38

@akshyapadma
Copy link

@WISKesarkar Have you found any solution to this?

I am facing the same problem in case of Union.

JohnStarich added a commit that referenced this issue Apr 24, 2024
Bumps github.com/nautilus/graphql to pick up bug fixes.

Fixes #197
@JohnStarich
Copy link
Member

@WISKesarkar Thank you for opening and for sharing a very easy-to-reproduce example. 👏
I've reproduced and it appears this was fixed by github.com/nautilus/[email protected].

I've bumped the gateway's dependency on graphql. I'll get that merged and cut a new release that includes the fix.

@JohnStarich JohnStarich added the bug Something isn't working label Apr 24, 2024
JohnStarich added a commit that referenced this issue Apr 24, 2024
Bumps github.com/nautilus/graphql to pick up bug fixes.

Fixes #197
@JohnStarich
Copy link
Member

JohnStarich commented Apr 24, 2024

New release v0.3.14 includes the fix. Please shout if this did not address your issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants