Been looking at the TRPC generated api. Noticed the api uses the create inputs... but generates the UncheckedInputs as well... are they not used. Can they be? Should they be?
ie..
create: z.object({
select: z.lazy(() => CategorySelectObjectSchema.optional()),
include: z.lazy(() => CategoryIncludeObjectSchema.optional()),
- data: CategoryCreateInputObjectSchema,
+ data: z.union([CategoryCreateInputObjectSchema, CategoryUncheckedCreateInputObjectSchema]),
}),
Obviously needs to be supported in the all methods: create, update, upsert etc.