graphiql
graphiql copied to clipboard
Remote schema SDL filed are not supported.
Actual Behavior
This extension does not work with remote schemas in graphql-config. i.e. http://somedomain.com/schema.gql graphql-config supports that.
Expected Behavior
Extension should support remote schema fetching.
Steps to Reproduce the Problem Or Description
{
schema: "https://someurl.com/schema.gql",
}
Specifications
- GraphQL for VSCode Extension Version: 0.34.1
- VSCode Version: 1.63.0
- OS Name: MacOS
- OS Version: 12.0.1
- graphql config filename and format example:
{
schema: "http://someurl.com/schema.gql",
}
Logs Of TS Server || GraphQL Language Service
Thanks for reporting! I will check it out soon
I am able to load schemas directly from a remote url. Here my example for Hasura:
.graphqlrc.yaml
schema:
- http://172.17.0.1:8080/v1/graphql:
headers:
x-hasura-admin-secret: "password"
@tepene thanks for reporting that! for @mmakarin, the path is to a remote schema file, so i think there could be a different issue here
@acao yep. It works if you specify path to graphQL endpoint (actual server returning actual data). But it doesn't work for remote schemas (gql file).
Any updates?
Running into this issue also when trying to fetch from monday.com's remote schema file at
https://api.monday.com/v2/get_schema?version=2024-01&format=sdl
this will be supported in the next major LSP server release!