@@ -122,8 +122,8 @@ import type {
122122} from "../steps/pgUnionAll.js" ;
123123import { pgUnionAll } from "../steps/pgUnionAll.js" ;
124124import {
125- WithPgClientStep ,
126- withPgClientTransaction ,
125+ SideEffectWithPgClientStep ,
126+ sideEffectWithPgClientTransaction ,
127127} from "../steps/withPgClient.js" ;
128128const sleep = ( ms : number ) => new Promise ( ( resolve ) => setTimeout ( resolve , ms ) ) ;
129129
@@ -4951,23 +4951,24 @@ export function makeExampleSchema(
49514951 } ,
49524952 } ) ;
49534953
4954- const MultipleActionsPayload = newObjectTypeBuilder < WithPgClientStep > (
4955- WithPgClientStep ,
4956- ) ( {
4957- name : "MultipleActionsPayload" ,
4958- fields : {
4959- i : {
4960- type : new GraphQLList ( new GraphQLNonNull ( GraphQLInt ) ) ,
4961- plan : EXPORTABLE (
4962- ( ) =>
4963- function plan ( $parent ) {
4964- return $parent ;
4965- } ,
4966- [ ] ,
4967- ) ,
4954+ const MultipleActionsPayload =
4955+ newObjectTypeBuilder < SideEffectWithPgClientStep > (
4956+ SideEffectWithPgClientStep ,
4957+ ) ( {
4958+ name : "MultipleActionsPayload" ,
4959+ fields : {
4960+ i : {
4961+ type : new GraphQLList ( new GraphQLNonNull ( GraphQLInt ) ) ,
4962+ plan : EXPORTABLE (
4963+ ( ) =>
4964+ function plan ( $parent ) {
4965+ return $parent ;
4966+ } ,
4967+ [ ] ,
4968+ ) ,
4969+ } ,
49684970 } ,
4969- } ,
4970- } ) ;
4971+ } ) ;
49714972
49724973 const Mutation = newObjectTypeBuilder < __ValueStep < BaseGraphQLRootValue > > (
49734974 __ValueStep ,
@@ -5186,9 +5187,9 @@ export function makeExampleSchema(
51865187 } ,
51875188 type : MultipleActionsPayload ,
51885189 plan : EXPORTABLE (
5189- ( executor , object , sleep , sql , withPgClientTransaction ) =>
5190+ ( executor , object , sideEffectWithPgClientTransaction , sleep , sql ) =>
51905191 function plan ( _$root , { $input : { $a } } ) {
5191- const $transactionResult = withPgClientTransaction <
5192+ const $transactionResult = sideEffectWithPgClientTransaction <
51925193 { a : number | null | undefined } ,
51935194 number [ ]
51945195 > (
@@ -5237,7 +5238,7 @@ export function makeExampleSchema(
52375238
52385239 return $transactionResult ;
52395240 } ,
5240- [ executor , object , sleep , sql , withPgClientTransaction ] ,
5241+ [ executor , object , sideEffectWithPgClientTransaction , sleep , sql ] ,
52415242 ) ,
52425243 } ,
52435244 } ,
0 commit comments