Skip to content

Commit da5ddc9

Browse files
committed
test: update select-types snapshot to include bulk mutation types
1 parent bf6061d commit da5ddc9

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

graphql/codegen/src/__tests__/codegen/__snapshots__/client-generator.test.ts.snap

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,34 @@ export interface DeleteArgs<TWhere, TSelect = undefined> {
426426
select?: TSelect;
427427
}
428428
429+
export interface BulkInsertArgs<TSelect, TData, TOnConflict = unknown> {
430+
data: TData[];
431+
select?: TSelect;
432+
onConflict?: TOnConflict;
433+
}
434+
435+
export interface BulkUpsertArgs<TSelect, TData, TOnConflict = unknown> {
436+
data: TData[];
437+
select?: TSelect;
438+
onConflict: TOnConflict;
439+
}
440+
441+
export interface BulkUpdateArgs<TSelect, TWhere, TData> {
442+
where: TWhere;
443+
data: TData;
444+
select?: TSelect;
445+
}
446+
447+
export interface BulkDeleteArgs<TSelect, TWhere> {
448+
where: TWhere;
449+
select?: TSelect;
450+
}
451+
452+
export interface BulkMutationResult<T> {
453+
affectedCount: number;
454+
returning: T[];
455+
}
456+
429457
type DepthLevel = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
430458
type DecrementDepth = {
431459
0: 0;

0 commit comments

Comments
 (0)