0no-co / gql.tada

🪄 Magical GraphQL query engine for TypeScript
https://gql-tada.0no.co
MIT License
2.56k stars 43 forks source link

Schema is missing a `schema` property #294

Closed nyoung697 closed 4 months ago

nyoung697 commented 4 months ago

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