Been stuck on this one for a few evenings. I have ...
# orm-help
j
Been stuck on this one for a few evenings. I have a node/graphql-yoga project that uses Prisma with postgres, and I am trying to understand how to best handle GraphQL-Errors that happen at a stage prior to my resolvers. The primary example is when a user initiates a createUser mutation with an email that violates a unique constraint. I want to handle any potential errors in my resolver, which looks like this: