Hi, I have just begun creating queries with the monday API. I know how to create a subitem. I also know how to search for an item by it’s column value, but I don’t understand how to put them together.
Create a subitem :
mutation {
create_subitem (parent_item_id: 1160322847, item_name: “omg i created a subitem”) {
id,
board {
id
}
}
}
Search by column value (email) :
query {
items_by_column_values (board_id: 1160277700, column_id: “email”, column_value: “email@whatever.com”) {
id
name
}
}
Now I would like to put the two together. Search for an item by the column value (email), and they create a subitem for that very item. How do I merge the two codes ? Thank you !