KJReactor
09/27/2019, 10:06 PMconst res = async ( root, args, ctx ) => await ctx.prisma.updateUser({
where: {id: promoter.id},
data: {
promotions: {
create: [{ ...event }]
}
}
})
return res;
Corey Snyder
09/27/2019, 10:40 PMUser.promotions.event.id
like you’re expecting. What if you re-query the user and return that, does it work?KJReactor
09/27/2019, 10:43 PMKJReactor
09/27/2019, 10:44 PM