As stated in the title, when I use a mutation to change the values of a column with multiple dropdown values, it clears out the values of a column that has the same dropdown options. I’m using axios.
query: `mutation ($itemId: Int!, $boardId: Int!, $columnValues: JSON!) {
change_multiple_column_values (
item_id: $itemId,
board_id: $boardId,
column_values: $columnValues
) {id}
}`,
variables: {
itemId: parseInt(contactId),
boardId: 1234567,
columnValues: JSON.stringify({
// PRE: birth plan (Multiple Choices)
dropdown06: { labels: preBirthPlan },
// POST: birth interventions (Multiple Choices)
dropdown97: { labels: postBirthInterventions },
}),
},
};
const { data } = await axios.post("https://api.monday.com/v2", body, {
headers: {
"Content-Type": "application/json",
Authorization: process.env.MONDAY_API_KEY,
},
});