graphql-compose-mongoose
graphql-compose-mongoose copied to clipboard
Special characters in enum
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.