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

Asking for support to ".gql" format #107

Closed
e200 opened this issue Oct 23, 2020 · 3 comments
Closed

Asking for support to ".gql" format #107

e200 opened this issue Oct 23, 2020 · 3 comments

Comments

@e200
Copy link

e200 commented Oct 23, 2020

".gql" is short and also a valid graphql schema format.

Can the generator recognize this extension too?

@smkhalsa
Copy link
Member

No, .gql won't work. We aren't using an external JS library to parse the graphql files.

@e200
Copy link
Author

e200 commented Oct 23, 2020

I know you aren't using a JS library to parse the files, makes no sense.

.gql and .graphql have the same content, so what's the problem parsing it?

@smkhalsa
Copy link
Member

The file extensions are not part of the official spec, but .graphql seems to be the canonical choice.

I know some libraries like graphql-tools(js) support .gql files. However, I think it's probably better to stick with just .graphql until there is more consensus around .gql or other extensions being 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

2 participants