What does a resolver function that returns an enum...
# orm-help
r
What does a resolver function that returns an enum look like? I cant find any examples for graphql yoga?
i
What are you looking to do? You shouldn’t need to implement enums in your resolvers because you are grabbing data from the context object and saving to the DB (or whatever you are doing with the data). The only place enums are exposed are when you are writing mutations. (Unless you are writing some interfaces, in which case, you can just add them to the interface, not the resolver)
n
Not sure I'd agree with you @iamclaytonray, you can totally return enums from a query.
i
How would you do that?