Open nireno opened 3 years ago
In Hasura, a nullable field order can be set to null with this mutation:
order
mutation ($id: String!) { update_table_by_pk(pk_columns: {id: $id}, _set: {order: null}) { id } }
But in Reason we're getting: Invalid argument. Expected "Int" but received "Null!".
Invalid argument. Expected "Int" but received "Null!".
A workaround is to use a nullable parameter and simply omit it when calling makeVariables:
mutation ($id: String!, $nullableInt: Int) { update_table_by_pk(pk_columns: {id: $id}, _set: {order: $nullableInt}) { id } }
In Hasura, a nullable field
order
can be set to null with this mutation:But in Reason we're getting:
Invalid argument. Expected "Int" but received "Null!".
A workaround is to use a nullable parameter and simply omit it when calling makeVariables: