createCaller from API NextJS (Pages Directory)
Hi, i want to call the procedure I was created in nextJS API.. and I already look at the documentation but I'm getting error like this 👇🏻
Argument of type '{}' is not assignable to parameter of type '{ session: Session | null; prisma: PrismaClient<Prisma.PrismaClientOptions, never, DefaultArgs>; }'.
how to fix it?
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1136468561875980378/image.png)
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1136468562102452414/image.png)
0 Replies