GraphQL Mutation Arguments Validation with Yup using graphql-middleware
September 06, 2018
Recently, I found out about the awesome library by Prisma called graphql-middleware , which allows running arbitrary code before/after your GraphQL resolvers are called. In this post, we are going to create a middleware to validate the input arguments of any GraphQL Mutation using Yup. Initial Code…