Open tx0c opened 3 years ago
@tx0c Did you ever find another project or script of your own that could do this? It'd be very valuable to be able to generate a .ts
file with concrete enums.
Across the pond in apollo: https://github.com/apollographql/apollo-tooling/pull/1750, https://github.com/apollographql/apollo-tooling/issues/1044
GraphQL allows enum with allow values in resolvers https://www.apollographql.com/docs/apollo-server/schema/schema/#internal-values-advanced
but this is generating always the enum's literal string value, is there anyway can support given values?
https://blog.logrocket.com/what-you-need-to-know-about-graphql-enums/
to make GraphQL
to generate TypeScript