Awey
10/30/2020, 9:23 PMnullable: false
and required: false
??? I have two required fields in my schema one of type string the other boolean. But when updating, I want to something like this.
If I only set nullable: false
then when I go to call my update mutation it asks me to pass in the other fields to update. What if I only want to update one field? And if I set required: false
my types become messed up and I'm told I can't update data where the value could possibly be null
Awey
10/30/2020, 9:26 PMdata: {
text: text!,
completed: completed!,
},
Ryan
11/02/2020, 7:44 AMcreate
or an update
?Awey
11/02/2020, 9:49 PMupdate
Ryan
11/03/2020, 10:13 AMnull
for a required field as that would cause a database constraint error.