Ayush Goyal
Ayush Goyal17mo ago

opts.input is of type undifined

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
0 Replies
No replies yetBe the first to reply to this messageJoin