Closed rrrnld closed 2 years ago
@heyarne mutation looks incorrect. It should be a list of ids instead of a dictionary. I guess you either are running an outdated or incompatible version of the dashboard or it is forked.
This is how it should look like:
mutation productBulkDelete($ids: [ID!]!) {
productBulkDelete(ids: $ids) {
errors {
...ProductError
__typename
}
__typename
}
}
fragment ProductError on ProductError {
code
field
message
__typename
}
{
"ids": [
"UHJvZHVjdDo3Mg==",
"UHJvZHVjdDo3NA==",
"UHJvZHVjdDoxMjI="
]
}
You can create a free dev account with Saleor cloud and use it as a reference.
What I'm trying to achieve
I'd like to delete many products through the dashboard. When trying to delete more than 20, I receive an error.
Steps to reproduce the problem
I also just noted that the selection switches when modal appears after clicking the trash icon, which might be related.
Screenshots
Http request and response from inspector
Request:
Response:
System information
Saleor version:
Operating system:
Browser: