Skip to content

Commit e777754

Browse files
committed
update
1 parent 100051f commit e777754

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/runtime/src/client/plugin.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ export type AfterEntityMutationCallback<Schema extends SchemaDef> = (
145145

146146
export type PluginBeforeEntityMutationArgs<Schema extends SchemaDef> = MutationHooksArgs<Schema> & {
147147
/**
148-
* Loads the entities that are about to be mutated.
148+
* Loads the entities that are about to be mutated. The db operation that loads the entities is executed
149+
* within the same transaction context as the mutation.
149150
*/
150151
loadBeforeMutationEntities(): Promise<Record<string, unknown>[] | undefined>;
151152

0 commit comments

Comments
 (0)