Join Slack
Powered by
Hi there, is there a new way to set properties of ...
# prisma-client
m
Martin Pinnau
05/16/2022, 3:02 PM
Hi there, is there a new way to set properties of a nexus stringArg to not required ? With prisma1 this was done by
Copy code
args: { buttonName: stringArg({ required: false }), },
this doesn't work anymore
d
Damian M
05/18/2022, 1:54 AM
Simply just do stringArg(). If you want it required do nonNull(stringArg())
Open in Slack
Previous
Next