We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1d2a6c commit f6d2ec4Copy full SHA for f6d2ec4
1 file changed
packages/orm/src/client/crud/operations/create.ts
@@ -29,7 +29,6 @@ export class CreateOperationHandler<Schema extends SchemaDef> extends BaseOperat
29
// analyze if the create involves nested creates
30
const needsNestedCreate = this.needsNestedCreate(args.data);
31
32
- // TODO: avoid using transaction for simple create
33
const result = await this.safeTransactionIf(needReadBack || needsNestedCreate, async (tx) => {
34
const createResult = await this.create(tx, this.model, args.data, undefined, false, selectedFields);
35
0 commit comments