feat: custom objects delete one (#2278)

* feat: custom objects delete one

* fix: delete one issue
This commit is contained in:
Jérémy M
2023-10-30 12:05:03 +01:00
committed by GitHub
parent 6640f2a651
commit 80a6223d7d
4 changed files with 52 additions and 0 deletions

View File

@ -103,4 +103,11 @@ export class PGGraphQLQueryRunner {
return this.parseResult(result, 'update')?.records?.[0];
}
async deleteOne(args: { id: string }): Promise<any> {
const query = this.queryBuilder.deleteOne(args);
const result = await this.execute(query, this.options.workspaceId);
return this.parseResult(result, 'deleteFrom')?.records?.[0];
}
}