question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remote schema SDL filed are not supported.

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
tepenecommented, Dec 23, 2021

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"
1reaction
acaocommented, Dec 14, 2021

Thanks for reporting! I will check it out soon

Read more comments on GitHub >

github_iconTop Results From Across the Web

Remote schema SDL filed are not supported. #2132 - GitHub
@acao yep. It works if you specify path to graphQL endpoint (actual server returning actual data). But it doesn't work for remote schemas...
Read more >
Remote Schemas – GraphQL Tools
Generate GraphQL schema objects that delegate to a remote server. ... Use introspectSchema to get the non-executable schema of the remote ...
Read more >
Generate GraphQL Types with Apollo Codegen Tutorial
Create a new file in the root of your project called local-schema.graphql . Here's where we'll put the types that exist locally but...
Read more >
Schema Configuration - Hot Chocolate - ChilliCream
In schema stitching field renames can be defined on the gateway: ... By default, all types of remote schemas are added to the...
Read more >
Developer guide · JS GraphQL IntelliJ Plugin
graphql file as SDL. See Working with GraphQL Endpoints. Project Structure and Schema Discovery. By default, the plugin assumes that your ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found