Hello @Helen !
Thank your help. In Playoud monday its working, in code nodejs the query direct in code without used graphql also working. Now when used query with graphql not working
the query return error:
errors: [
{
message: "Field 'change_simple_column_value' is missing required arguments: column_id, value",
locations: [Array],
fields: [Array]
},
{
message: "Field 'change_simple_column_value' doesn't accept argument 'column_values'",
locations: [Array],
fields: [Array]
},
{
message: 'Variable $column_values is declared by but not used',
locations: [Array],
fields: [Array]
}
],
I tried to use function graphql:
updatedColum(body: UpdatedMultipleDTO) {
return {
operation: 'change_simple_column_value',
variables: {
board_id: {
value: this.config.boardFeedbackId,
required: true,
type: 'Int',
},
item_id: {
value: body.itemId,
required: true,
type: 'Int',
},
column_values: {
type: 'JSON',
value: JSON.stringify(body.newData),
},
},
fields: ['id'],
};
}
Here my query direct code, That working :
mutation { change_multiple_column_values( board_id: 1320360890, item_id:1489846068, column_values: "{\"status8\":\"0\",\"texto7\":\"gabriella staniecki\"}" ) { id } }
Here query using graqhql:
mutation ($board_id: Int!, $item_id: Int!, $column_values: JSON) {
change_simple_column_value (board_id: $board_id, item_id: $item_id, column_values: $column_values) {
id
}
}
var {
board_id: 1320360890,
item_id: 1489846068,
column_values: '{"status8":"0","texto7":"gabriella staniecki"}'
}