@@ -13,19 +13,19 @@ export default function createRouter<Config extends BaseConfig>(router: RouterFa
1313
1414 aggregate : procedure . input ( $Schema . PostInputSchema . aggregate ) . query ( ( { ctx, input } ) => checkRead ( db ( ctx ) . post . aggregate ( input as any ) ) ) ,
1515
16- createMany : procedure . input ( $Schema . PostInputSchema . createMany ) . mutation ( async ( { ctx, input } ) => checkMutate ( db ( ctx ) . post . createMany ( input as any ) ) ) ,
16+ createMany : procedure . input ( $Schema . PostInputSchema . createMany . optional ( ) ) . mutation ( async ( { ctx, input } ) => checkMutate ( db ( ctx ) . post . createMany ( input as any ) ) ) ,
1717
1818 create : procedure . input ( $Schema . PostInputSchema . create ) . mutation ( async ( { ctx, input } ) => checkMutate ( db ( ctx ) . post . create ( input as any ) ) ) ,
1919
20- deleteMany : procedure . input ( $Schema . PostInputSchema . deleteMany ) . mutation ( async ( { ctx, input } ) => checkMutate ( db ( ctx ) . post . deleteMany ( input as any ) ) ) ,
20+ deleteMany : procedure . input ( $Schema . PostInputSchema . deleteMany . optional ( ) ) . mutation ( async ( { ctx, input } ) => checkMutate ( db ( ctx ) . post . deleteMany ( input as any ) ) ) ,
2121
2222 delete : procedure . input ( $Schema . PostInputSchema . delete ) . mutation ( async ( { ctx, input } ) => checkMutate ( db ( ctx ) . post . delete ( input as any ) ) ) ,
2323
24- findFirst : procedure . input ( $Schema . PostInputSchema . findFirst ) . query ( ( { ctx, input } ) => checkRead ( db ( ctx ) . post . findFirst ( input as any ) ) ) ,
24+ findFirst : procedure . input ( $Schema . PostInputSchema . findFirst . optional ( ) ) . query ( ( { ctx, input } ) => checkRead ( db ( ctx ) . post . findFirst ( input as any ) ) ) ,
2525
26- findFirstOrThrow : procedure . input ( $Schema . PostInputSchema . findFirst ) . query ( ( { ctx, input } ) => checkRead ( db ( ctx ) . post . findFirstOrThrow ( input as any ) ) ) ,
26+ findFirstOrThrow : procedure . input ( $Schema . PostInputSchema . findFirst . optional ( ) ) . query ( ( { ctx, input } ) => checkRead ( db ( ctx ) . post . findFirstOrThrow ( input as any ) ) ) ,
2727
28- findMany : procedure . input ( $Schema . PostInputSchema . findMany ) . query ( ( { ctx, input } ) => checkRead ( db ( ctx ) . post . findMany ( input as any ) ) ) ,
28+ findMany : procedure . input ( $Schema . PostInputSchema . findMany . optional ( ) ) . query ( ( { ctx, input } ) => checkRead ( db ( ctx ) . post . findMany ( input as any ) ) ) ,
2929
3030 findUnique : procedure . input ( $Schema . PostInputSchema . findUnique ) . query ( ( { ctx, input } ) => checkRead ( db ( ctx ) . post . findUnique ( input as any ) ) ) ,
3131
@@ -39,7 +39,7 @@ export default function createRouter<Config extends BaseConfig>(router: RouterFa
3939
4040 upsert : procedure . input ( $Schema . PostInputSchema . upsert ) . mutation ( async ( { ctx, input } ) => checkMutate ( db ( ctx ) . post . upsert ( input as any ) ) ) ,
4141
42- count : procedure . input ( $Schema . PostInputSchema . count ) . query ( ( { ctx, input } ) => checkRead ( db ( ctx ) . post . count ( input as any ) ) ) ,
42+ count : procedure . input ( $Schema . PostInputSchema . count . optional ( ) ) . query ( ( { ctx, input } ) => checkRead ( db ( ctx ) . post . count ( input as any ) ) ) ,
4343
4444 }
4545 ) ;
@@ -123,14 +123,14 @@ export interface ClientType<AppRouter extends AnyRouter, Context = AppRouter['_d
123123 findFirst : {
124124
125125 useQuery : < T extends Prisma . PostFindFirstArgs , TData = Prisma . PostGetPayload < T > > (
126- input : Prisma . SelectSubset < T , Prisma . PostFindFirstArgs > ,
126+ input ? : Prisma . SelectSubset < T , Prisma . PostFindFirstArgs > ,
127127 opts ?: UseTRPCQueryOptions < string , T , Prisma . PostGetPayload < T > , TData , Error >
128128 ) => UseTRPCQueryResult <
129129 TData ,
130130 TRPCClientErrorLike < AppRouter >
131131 > ;
132132 useInfiniteQuery : < T extends Prisma . PostFindFirstArgs > (
133- input : Omit < Prisma . SelectSubset < T , Prisma . PostFindFirstArgs > , 'cursor' > ,
133+ input ? : Omit < Prisma . SelectSubset < T , Prisma . PostFindFirstArgs > , 'cursor' > ,
134134 opts ?: UseTRPCInfiniteQueryOptions < string , T , Prisma . PostGetPayload < T > , Error >
135135 ) => UseTRPCInfiniteQueryResult <
136136 Prisma . PostGetPayload < T > ,
@@ -141,14 +141,14 @@ export interface ClientType<AppRouter extends AnyRouter, Context = AppRouter['_d
141141 findFirstOrThrow : {
142142
143143 useQuery : < T extends Prisma . PostFindFirstOrThrowArgs , TData = Prisma . PostGetPayload < T > > (
144- input : Prisma . SelectSubset < T , Prisma . PostFindFirstOrThrowArgs > ,
144+ input ? : Prisma . SelectSubset < T , Prisma . PostFindFirstOrThrowArgs > ,
145145 opts ?: UseTRPCQueryOptions < string , T , Prisma . PostGetPayload < T > , TData , Error >
146146 ) => UseTRPCQueryResult <
147147 TData ,
148148 TRPCClientErrorLike < AppRouter >
149149 > ;
150150 useInfiniteQuery : < T extends Prisma . PostFindFirstOrThrowArgs > (
151- input : Omit < Prisma . SelectSubset < T , Prisma . PostFindFirstOrThrowArgs > , 'cursor' > ,
151+ input ? : Omit < Prisma . SelectSubset < T , Prisma . PostFindFirstOrThrowArgs > , 'cursor' > ,
152152 opts ?: UseTRPCInfiniteQueryOptions < string , T , Prisma . PostGetPayload < T > , Error >
153153 ) => UseTRPCInfiniteQueryResult <
154154 Prisma . PostGetPayload < T > ,
@@ -159,14 +159,14 @@ export interface ClientType<AppRouter extends AnyRouter, Context = AppRouter['_d
159159 findMany : {
160160
161161 useQuery : < T extends Prisma . PostFindManyArgs , TData = Array < Prisma . PostGetPayload < T > > > (
162- input : Prisma . SelectSubset < T , Prisma . PostFindManyArgs > ,
162+ input ? : Prisma . SelectSubset < T , Prisma . PostFindManyArgs > ,
163163 opts ?: UseTRPCQueryOptions < string , T , Array < Prisma . PostGetPayload < T > > , TData , Error >
164164 ) => UseTRPCQueryResult <
165165 TData ,
166166 TRPCClientErrorLike < AppRouter >
167167 > ;
168168 useInfiniteQuery : < T extends Prisma . PostFindManyArgs > (
169- input : Omit < Prisma . SelectSubset < T , Prisma . PostFindManyArgs > , 'cursor' > ,
169+ input ? : Omit < Prisma . SelectSubset < T , Prisma . PostFindManyArgs > , 'cursor' > ,
170170 opts ?: UseTRPCInfiniteQueryOptions < string , T , Array < Prisma . PostGetPayload < T > > , Error >
171171 ) => UseTRPCInfiniteQueryResult <
172172 Array < Prisma . PostGetPayload < T > > ,
@@ -389,7 +389,7 @@ export interface ClientType<AppRouter extends AnyRouter, Context = AppRouter['_d
389389 ? number
390390 : Prisma . GetScalarType < T [ 'select' ] , Prisma . PostCountAggregateOutputType >
391391 : number > (
392- input : Prisma . Subset < T , Prisma . PostCountArgs > ,
392+ input ? : Prisma . Subset < T , Prisma . PostCountArgs > ,
393393 opts ?: UseTRPCQueryOptions < string , T , 'select' extends keyof T
394394 ? T [ 'select' ] extends true
395395 ? number
@@ -400,7 +400,7 @@ export interface ClientType<AppRouter extends AnyRouter, Context = AppRouter['_d
400400 TRPCClientErrorLike < AppRouter >
401401 > ;
402402 useInfiniteQuery : < T extends Prisma . PostCountArgs > (
403- input : Omit < Prisma . Subset < T , Prisma . PostCountArgs > , 'cursor' > ,
403+ input ? : Omit < Prisma . Subset < T , Prisma . PostCountArgs > , 'cursor' > ,
404404 opts ?: UseTRPCInfiniteQueryOptions < string , T , 'select' extends keyof T
405405 ? T [ 'select' ] extends true
406406 ? number
0 commit comments