T
tRPC

opts.input is of type undifined

opts.input is of type undifined

AGAyush Goyal8/29/2023
register: publicProcedure.input(
RegisterSchema
).mutation(async (opts) => {
//checking for existing user
const existingUser = await db.select().from(user).where(eq(user.email, opts.input.email));
register: publicProcedure.input(
RegisterSchema
).mutation(async (opts) => {
//checking for existing user
const existingUser = await db.select().from(user).where(eq(user.email, opts.input.email));
RegisterSchema is a zod schema comming from an another file it is giving me the error opts.input is of type undefined

Looking for more? Join the community!

T
tRPC

opts.input is of type undifined

Join Server