graphql-compose-mongoose icon indicating copy to clipboard operation
graphql-compose-mongoose copied to clipboard

Special characters in enum

Open DavidMulder0 opened this issue 4 years ago • 0 comments

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.

DavidMulder0 avatar Dec 27 '20 10:12 DavidMulder0