Skip to content

unexpected field specifiedByURL type on __Type #443

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

Open
3 tasks done
ali-shabani opened this issue Mar 17, 2025 · 2 comments
Open
3 tasks done

unexpected field specifiedByURL type on __Type #443

ali-shabani opened this issue Mar 17, 2025 · 2 comments

Comments

@ali-shabani
Copy link

Describe the bug

When I try to generate types from a GraphQL endpoint (Supabase), I keep running into this error:

unexpected field specifiedByURL type on __Type

The GraphQL endpoint is auto-generated by pg_graphql in Supabase. Any idea what’s causing this? 🤔

Reproduction

No response

gql.tada version

gql.tata v1.8.10

Validations

  • I can confirm that this is a bug report, and not a feature request, RFC, question, or discussion, for which GitHub Discussions should be used
  • Read the docs.
  • Follow our Code of Conduct
@kitten
Copy link
Member

kitten commented Mar 17, 2025

This is most likely related to a faulty "meta introspection" I'd suspect. I think we've seen this being caught for another server implementation before.

Essentially, the introspection code in gql.tada operates in two steps instead of one:

If a GraphQL API sends a result for the support query that does not reflect its actual feature support, the query will fail.

Without a reproduction or more details, it's a little unclear though what might be happening in detail here, but the above probably is the cause of this

@ali-shabani
Copy link
Author

@kitten
To reproduce this error, I set up a repo and linked it to a sample project in Supabase. You can clone it and check out the errors yourself: https://github.com/ali-shabani/gqltada.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants