Skip to content

Commit fd7c5ec

Browse files
authored
chore(orm): add aliased exports for all write operations (#2386)
1 parent da3b0af commit fd7c5ec

File tree

1 file changed

+10
-0
lines changed
  • packages/orm/src/client/crud/operations

1 file changed

+10
-0
lines changed

packages/orm/src/client/crud/operations/base.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,16 @@ export const AllReadOperations = [...CoreReadOperations, 'findUniqueOrThrow', 'f
170170
*/
171171
export type AllReadOperations = (typeof AllReadOperations)[number];
172172

173+
/**
174+
* List of all write operations - simply an alias of CoreWriteOperations.
175+
*/
176+
export const AllWriteOperations = CoreWriteOperations;
177+
178+
/**
179+
* List of all write operations - simply an alias of CoreWriteOperations.
180+
*/
181+
export type AllWriteOperations = CoreWriteOperations;
182+
173183
// context for nested relation operations
174184
export type FromRelationContext = {
175185
// the model where the relation field is defined

0 commit comments

Comments
 (0)