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

Support multiples schemas #27

Closed
sibelius opened this issue Sep 21, 2016 · 2 comments
Closed

Support multiples schemas #27

sibelius opened this issue Sep 21, 2016 · 2 comments

Comments

@sibelius
Copy link

I open my webstorm in a top directory that has many projects, some of them use one schema.json and others use another_schema.json, is it possible to make this configurable per folder?

For instance,

projects:

  • projectA
  • projectB

projectA uses schemaA.json
projectB uses schemaB.json

@jimkyndemeyer
Copy link
Collaborator

Hi Sibelius.

Thanks for using the plugin.

I can see how multiple schemas could be useful in a project. Unfortunately, I think that supporting this would be a rather large change to both the plugin and the language service since they coordinate file watches and editor notifications. A PR that enables this would be very welcome since I'm currently focusing on the Endpoint Language branch.

There is work being done to standardize GraphQL tooling in https://github.com/graphcool/graphql-config so you might want to raise the multiple schemas issue there as well. It's non-trivial since there's also an ongoing discussion about supporting multiple environments.

For now, I think your best option is to have multiple WebStorm projects, or edit graphql.config.json when you're working in a specific module.

Best regards,
Jim.

@sibelius
Copy link
Author

tks, I'll edit for now

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

2 participants