feat: record batch deleteMany (#3096)

feat: support record batch deleteMany

Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
Cao Z.H
2023-12-22 02:55:40 +08:00
committed by GitHub
parent 801177531b
commit 794cf87b43
6 changed files with 113 additions and 18 deletions

View File

@ -24,7 +24,7 @@ export class DeleteManyQueryFactory {
mutation {
deleteFrom${
options.targetTableName
}Collection(filter: ${stringifyWithoutKeyQuote(args.filter)}) {
}Collection(filter: ${stringifyWithoutKeyQuote(args.filter)}, atMost: 30) {
affectedCount
records {
${fieldsString}