The first “date” is the column ID of the date column, and the second “date” tells the column to assign the cell with the date value of Jan 20. Let me know if that does the trick.
** success ** {
errors: [
{
message: 'Variable columnValues of type JSON! was provided invalid value',
locations: [Array],
value: null,
problems: [Array]
}
],
account_id: ID
}
Hi @dipro, have you got a chance to see my above issue? I am unable to understand what is wrong. Please help me.
Try this instead for your column_values
The columns you are trying to make null are expecting a json object type but being given null. To make the field null you need to give a json object with a null key pair i.e. {null:null}
Thanks @Alex.M. Unfortunately it shows this error:
{
* errors: /
* {
* message: "Variable columnValues of type JSON! was provided invalid value",
* locations: /
* {
* line: 2,
* column: 69}],
* value: null,
* problems:
* {
* path: ],
* explanation: "Expected value to not be null"}]}],
{
message: 'Variable columnValues of type JSON! was provided invalid value',
locations: [Array],
value: null,
problems: [Array]
}
],
Looks like you have a variable mismatch. In your create_item mutation you have the variable $columnValues but in the variables it is defined as columnsValues.
@Alex.M You are totally correct. Thank you so much.