-
Notifications
You must be signed in to change notification settings - Fork 3
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
String enums #16
Comments
Yes it can be very helpful. I suggest you to take a look at graphql-code-generator. It's a great package which has got tons of options, it can generate enums as you mentioned. |
@c0m1t Thank you Knowing that, do you think this should issue should be closed? Am I potentially suggesting something out of scope for your project, or is string enums something you'd like to add potentially? |
As far as I remember, I created this repo because back in the day I do not have much time to add features to this package, so I cannot promise I will add this feature any time soon. But I greatly appreciate and welcome contributions to this project. So if you like to give it a shot, you can submit a pull request. |
Noted - similarly at this time, I will first look into graphql-code-generator, which you suggested I am easy either way as well. I think in the mean time if someone wants to make a PR we can keep this open and it can be reviewed. If I find that graphql-code-generator doesn't work out I will ping you here. In the event time passes and this goes stale and you are cleaning up issues, you can close this later on anytime. |
It could be valuable in some cases to have string enum output:
and possibly a list of string enums:
^ I haven't tried the above to see if the types themselves connect, but seeing if this in general fits in scope of your project, for the moment
Related
The text was updated successfully, but these errors were encountered: