Hi, if I try to perform a bulk delete on a table with relations, I get this:
`289 | if (((_b = response.headers.get("content-type")) == null ? void 0 : _b.includes("application/json")) || responseType === "arrayBuffer") { 290 | responseText = JSON.stringify(data); 291 | } else { 292 | responseText = data == null ? void 0 : data.message; 293 | } 294 | throw new AppwriteException(data == null ? void 0 : data.message, response.status, data == null ? void 0 : data.type, responseText); ^ AppwriteException: Bulk delete is not supported for tablesDB with relationship attributes code: 400, type: "general_bad_request", response: "{message:Bulk delete is not supported for tablesDB with relationship attributes,code:400,type:general_bad_request,version:1.8.0}",
at call (/Users/simone/dev/polybank/node_modules/.bun/node-appwrite@20.2.1/node_modules/node-appwrite/dist/client.mjs:294:13)`
This is the code I am tryng to run
`const response = await tables.deleteRows({ databaseId: process.env.APPWRITE_DATABASE_ID!, tableId: 'categories', queries: [Query.equal('is_default', false)], });
console.log(response); ` Am i doing something wrong or is it the way it is supposed to work?
Recommended threads
- Does appwrite supports increasing the va...
I am building a chat application where user message needs to increased on every row creation. For this is there any increament feature?
- Broken Appwrite can’t make functions nor...
Hii guys, I was having this issue with my locally hosted Appwrite, I can’t create functions ( both template and manual), I can’t make a custom domain ( like in ...
- SSR share session to client using custom...
Hi, so I was trying to get a hang of using SSR and using realtime updates in the same time which is done easiest if you have a custom domain in Appwrite and as ...