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
For example the following will raise an exception when number is null
class EditNumber(graphene.ClientIDMutation):
class Input:
number = graphene.Int()
success = graphene.Boolean()
@classmethod
def mutate_and_get_payload(cls, args, context, info):
args['number'] # this raises a errror when i pass in null
On the JS side my getVariables input is:
getVariables() {
return {
number: null
};
}
I would expect calling args['number'] to return None instead of raising an exception if I specifically supply null as my input