create: privateProcedure
.input(
z.object({
// Some other fields
creators: (this is where I'm confused)
})
)
.mutation(async ({ input }) => {
const artistId = ctx.userId;
const art = await ctx.prisma.art.create({
data: {
// Some other fields
creators: input.creators,
},
});
return art;
}),
create: privateProcedure
.input(
z.object({
// Some other fields
creators: (this is where I'm confused)
})
)
.mutation(async ({ input }) => {
const artistId = ctx.userId;
const art = await ctx.prisma.art.create({
data: {
// Some other fields
creators: input.creators,
},
});
return art;
}),