Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local schema as npm dependency #126

Open
wintermute42 opened this issue Sep 25, 2019 · 1 comment
Open

Local schema as npm dependency #126

wintermute42 opened this issue Sep 25, 2019 · 1 comment

Comments

@wintermute42
Copy link

Hi guys,
I have dependency in my project which contains the schema file. It seems I can't get the config right, or at least my IDE (webstorm) seems to be ignorant of the schema file. Some help would be appreciated. Thanks!

{
  "schemaPath": "./node_modules/@foo/graphql-schema/schema/schema.graphqls",
  "extensions": {
    "endpoints": {
      "local": {
        "url": "http://localhost:8000/graphql"
      }
    }
  }
}

@kamilkisiela kamilkisiela mentioned this issue Oct 16, 2019
23 tasks
@kamilkisiela kamilkisiela added this to the v3.0.0 milestone Oct 24, 2019
@kamilkisiela kamilkisiela removed this from the v3.0.0 milestone Oct 25, 2019
@danielrearden
Copy link
Collaborator

We could add @graphql-tools/module-loader to support loading schemas using module:someModule#identifier syntax. The existing loaders should however already be able to pick up a file like this:

schema: './node_modules/@foo/graphql-schema/schema/schema.graphql'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants