@@ -344,28 +344,28 @@ export function useModelQueries<Schema extends SchemaDef, Model extends GetModel
344344 return useInternalMutation ( schema , modelName , 'DELETE' , 'deleteMany' , options ) ;
345345 } ,
346346
347- useCount : ( options ?: any ) => {
348- return useInternalQuery ( schema , modelName , 'count' , undefined , options ) ;
347+ useCount : ( args : any , options ?: any ) => {
348+ return useInternalQuery ( schema , modelName , 'count' , args , options ) ;
349349 } ,
350350
351- useSuspenseCount : ( options ?: any ) => {
352- return useInternalSuspenseQuery ( schema , modelName , 'count' , undefined , options ) ;
351+ useSuspenseCount : ( args : any , options ?: any ) => {
352+ return useInternalSuspenseQuery ( schema , modelName , 'count' , args , options ) ;
353353 } ,
354354
355- useAggregate : ( options ?: any ) => {
356- return useInternalQuery ( schema , modelName , 'aggregate' , undefined , options ) ;
355+ useAggregate : ( args : any , options ?: any ) => {
356+ return useInternalQuery ( schema , modelName , 'aggregate' , args , options ) ;
357357 } ,
358358
359- useSuspenseAggregate : ( options ?: any ) => {
360- return useInternalSuspenseQuery ( schema , modelName , 'aggregate' , undefined , options ) ;
359+ useSuspenseAggregate : ( args : any , options ?: any ) => {
360+ return useInternalSuspenseQuery ( schema , modelName , 'aggregate' , args , options ) ;
361361 } ,
362362
363- useGroupBy : ( options ?: any ) => {
364- return useInternalQuery ( schema , modelName , 'groupBy' , undefined , options ) ;
363+ useGroupBy : ( args : any , options ?: any ) => {
364+ return useInternalQuery ( schema , modelName , 'groupBy' , args , options ) ;
365365 } ,
366366
367- useSuspenseGroupBy : ( options ?: any ) => {
368- return useInternalSuspenseQuery ( schema , modelName , 'groupBy' , undefined , options ) ;
367+ useSuspenseGroupBy : ( args : any , options ?: any ) => {
368+ return useInternalSuspenseQuery ( schema , modelName , 'groupBy' , args , options ) ;
369369 } ,
370370 } as ModelQueryHooks < Schema , Model > ;
371371}
0 commit comments