TRPCClientError: Cannot read properties of undefined (reading 'resolve') at a.from (https://....)47
{"0":{"result":{"data":{"json":null,"meta":{"values":["undefined"]}}}}
1
}
0create: publicProcedure
.input(z.object({ myData: z.string().min(1) }))
.mutation(async ({ ctx, input }) => {
// simulate a slow db call
//await new Promise((resolve) => setTimeout(resolve, 1000));
await ctx.db.insert(posts).values({
myData: input.myData,
});
}),Join the Discord to ask follow-up questions and connect with the community