graphiql icon indicating copy to clipboard operation
graphiql copied to clipboard

Remote schema SDL filed are not supported.

Open mmakarin opened this issue 3 years ago • 7 comments

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

mmakarin avatar Dec 14 '21 08:12 mmakarin

Thanks for reporting! I will check it out soon

acao avatar Dec 14 '21 13:12 acao

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 avatar Dec 23 '21 16:12 tepene

@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 avatar Dec 23 '21 17:12 acao

@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).

mmakarin avatar Dec 26 '21 16:12 mmakarin

Any updates?

mmakarin avatar Jan 11 '22 19:01 mmakarin

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

Samic8 avatar Apr 20 '24 06:04 Samic8

this will be supported in the next major LSP server release!

acao avatar Apr 21 '24 09:04 acao