useQuery
useMutation
const devCompanyMutation = trpc.devCompany.create.useMutation(); const onSubmit = (latestDoc: T_Insert_DevCompany) => { console.log({latestDoc}); devCompanyMutation.mutate(latestDoc); };
export const devCompanyRouter = router({ create: publicProcedure .input(z.object({ name: z.string().nullish() }).nullish()) .mutation(({ input }) => { console.log({input}) return input; })})