-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add operation export name #4020
Conversation
Thanks @aspirisen ! This should work only with Also, have you checked |
@dotansimha Yes, it would work only in I checked |
If you need to have a more strict path in the module declaration, you can use this configuration: https://github.com/dotansimha/graphql-code-generator/blob/master/packages/plugins/typescript/graphql-files-modules/src/index.ts#L6-L25 (it's not in the docs, we need to update it). I afraid that the name you set for this variable might conflict with other plugins, we need to check that. |
@dotansimha what variable do you mean, the const export in |
3ec140a
to
4f425e8
Compare
I think we can get this one merged. Thank you @aspirisen , sorry it took so long! |
The latest changes of this PR are available as alpha in npm: Quickly update your package.json by running:
|
This PR is relative to this issue #3949
It allows you to add operation name to output file.