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
enum AuthType {
GOOGLE = 'google-auth',
GITHUB = 'github-auth',
OUTLOOK = 'outlook-auth',
}
to generate TypeScript
export const enum AuthType {
GOOGLE = 'google-auth',
GITHUB = 'github-auth',
OUTLOOK = 'outlook-auth',
}
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