KJReactor
08/25/2020, 3:28 PMdata
contains the input for the new product
I checked the table it indeed refers to the designated home. However, I can't get the products
column in Home to refer to the set of keys it has products
is an array of the same type of key.id. I tried changing the above to this but it doesn't work:
``
return await ctx.prisma.store.update({
where: { store_id },
data: {
products: {
create: { ...data }
}
}
});
``nikolasburk
nikolasburk
return await ctx.prisma.store.update({
where: { store_id },
data: {
products: {
create: { ...data }
}
}
});
KJReactor
09/01/2020, 4:04 PM