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 newer (v3) graphql-config file formats #59

Open
satyanash opened this issue Dec 16, 2023 · 0 comments
Open

support newer (v3) graphql-config file formats #59

satyanash opened this issue Dec 16, 2023 · 0 comments

Comments

@satyanash
Copy link

satyanash commented Dec 16, 2023

Currently, graphql-mode only looks for a single .graphqlconfig file. While this works okay, other editors/plugins such as IntelliJ etc will recommend upgrading to the v3 file format, as per these migration notes. Any project that has upgraded to the v3 file format will cease to work with graphql-mode and show the Could not find a .graphqlconfig file error message.

The (backward-incompatible) v3 file lookup allows for any of the following:

graphql.config.json
graphql.config.js
graphql.config.cjs
graphql.config.ts
graphql.config.toml
graphql.config.yaml
graphql.config.yml
.graphqlrc (YAML and JSON)
.graphqlrc.json
.graphqlrc.toml
.graphqlrc.yaml
.graphqlrc.yml
.graphqlrc.js
.graphqlrc.ts
graphql property in package.json

I don't think the graphql-mode package needs to support all of the above, but at least the json and yaml versions should be supported.

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

No branches or pull requests

1 participant