I'm doing this,
as where input is for create,
update is for update,
query is for "where".
All the type hints are correct.
but I'm getting runtime error
ERROR [nitro] [uncaughtException] Cannot read properties of undefined (reading 'optional')
at node_modules/zod/lib/index.mjs:2626:45
at Array.forEach (<anonymous>)
at ZodObject.partial (node_modules/zod/lib/index.mjs:2620:37)
at <anonymous> (server/trpc/routers/design/category.ts:7:51)
at ModuleJob.run (node:internal/modules/esm/module_job:222:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:123:5)
I'm doing this, as where input is for create, update is for update, query is for "where". All the type hints are correct.
but I'm getting runtime error