graphql-compose / graphql-compose/graphql-compose-mongoose

Special characters in enum

Open
#297 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
706
Forks
98
PR merge metrics
No merged PRs in 30d

Description

Right now a mongodb enum is turned into a GraphQL enum, which will change all unknown characters to underscores as far as I can tell. How can I disable this behavior (the enum just being reported as a string in the GraphQL schema and no conversion happening in the resolver)?

I also really do not think having this behavior being enabled by default is a good idea, maybe the enum conversion behavior makes sense in certain cases, but that really should be something the user opts into, rather than something that magically happens.

PS. Fairly new to graph-compose-mongoose and graphql in general, so if this is based on some misunderstanding of the subject matter: apologies.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.