Skip to content

Support multiples schemas #27

New issue

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

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

Already on GitHub? # to your account

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

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

No branches or pull requests

2 participants