graphql / graphiql

GraphiQL & the GraphQL LSP Reference Ecosystem for building browser & IDE tools.
MIT License
16.01k stars 1.72k forks source link

Remote schema SDL filed are not supported. #2132

Open mmakarin opened 2 years ago

mmakarin commented 2 years ago

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

Logs Of TS Server || GraphQL Language Service

acao commented 2 years ago

Thanks for reporting! I will check it out soon

tepene commented 2 years ago

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"
acao commented 2 years ago

@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

mmakarin commented 2 years ago

@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 commented 2 years ago

Any updates?

Samic8 commented 5 months ago

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

acao commented 5 months ago

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