Hey there, anyone knows how to delete multiple cards, by their Id, with graphQL mutation? I tried this:
mutation {
deleteCard(input: {id: [751517290,751517292,751517294,751517296,751517297,751517299,751517300,751517305,751517318,751517343,751517344,751517345,751517346,751517347,751517348,751517349,751517352,751517353,751517355,751517356,751517358,751517360,751517361,751517363,751517364,751517366,751517367,751517368]}) {
success
}
}
and received this:
{
"errors": [
{
"message": "Argument 'id' on InputObject 'DeleteCardInput' has an invalid value ([751517290, 751517292, 751517294, 751517296, 751517297, 751517299, 751517300, 751517305, 751517318, 751517343, 751517344, 751517345, 751517346, 751517347, 751517348, 751517349, 751517352, 751517353, 751517355, 751517356, 751517358, 751517360, 751517361, 751517363, 751517364, 751517366, 751517367, 751517368]). Expected type 'ID!'.",
"locations": [
{
"line": 3,
"column": 21
}
],
"path": [
"mutation",
"deleteCard",
"input",
"id"
],
"extensions": {
"code": "argumentLiteralsIncompatible",
"typeName": "InputObject",
"argumentName": "id"
}
}
]
}
Can anyone help?
Thanks
Best answer by genietim
View original