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

Schema is missing a schema property #294

Closed
3 tasks done
nyoung697 opened this issue May 13, 2024 · 0 comments · Fixed by #295
Closed
3 tasks done

Schema is missing a schema property #294

nyoung697 opened this issue May 13, 2024 · 0 comments · Fixed by #295

Comments

@nyoung697
Copy link

Describe the bug

Since version 1.6, using a url + headers for a schema produces the error "Failed to load configuration. Schema is missing a schema property".

This is my plugins property in tsconfig:

"plugins": [
      {
        "name": "@0no-co/graphqlsp",
        "schema": {
          "url": "http://localhost:8080/v1/graphql",
          "headers": {
            "x-hasura-admin-secret": "secret"
          }
        },
        "tadaOutputLocation": "./src/graphql-env.d.ts"
      }
    ]

I played around with some different configurations based on the blog post for Multi-Schema mode, but wasn't able to resolve the error.

Is anyone else experiencing this? Am I missing something here? It works fine on versions below 1.6.

Thank you.

Reproduction

No response

gql.tada version

gql.tada@latest
gql.tada@1.6
latest version of the @0no-co pkg.

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
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

Successfully merging a pull request may close this issue.

1 participant