Hi guys, so I've been diving deep into GraphQL and Prisma for a new side-project, I've been liking it so far, I've managed to setup my data models, protect my API with GraphQL Shield and have support for authentication through API keys for my external apps / microservices 😄
Now one of those micro-services is sending back tons of data that I need to 'upsert' in my database through my API. I'm writing a custom mutation to support generic data that I manually resolve into actual models / types within my Prisma API.
Now, I have enums defined in my datamodel, what I want to do now is check if that one of the input strings matches one of those enums, and I can't figure out how to do that. Since the enums are not exported as arrays, but only as an actual Type in the Prisma Client, any tips? (TypeScript client here btw)