You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are currently not validating the user inputs on the GraphQL server with Zod; instead, we are doing the validation with such code block like below. We want also to have Zod validation in GraphQL similar to what we have In Next.js Routes
if(typeofargs.firstName!=='string'||typeofargs.type!=='string'||(args.accessory&&typeofargs.type!=='string')||!args.firstName||!args.type){thrownewGraphQLError('Required field missing');}
The text was updated successfully, but these errors were encountered:
We are currently not validating the user inputs on the GraphQL server with
Zod
; instead, we are doing the validation with such code block like below. We want also to haveZod
validation in GraphQL similar to what we have In Next.js RoutesThe text was updated successfully, but these errors were encountered: