Alex Reyne
01/16/2021, 7:16 PMUsers_Runs_ad_idToUsers: {
connectOrCreate: {
where: { discord: obj.ad.id },
create: {
Servers: {
connect: { server_id: await getServer(obj.ad.nickname) }
},
discord: obj.ad.id,
payout_char: obj.ad.nickname,
balance: 0,
Ranks: {
connect: { id: 4 }
}
}
}
}
Something like thisRyan
01/18/2021, 8:05 AMconnect
inside a connectOrCreate
. What’s the issue you’re facing?Ryan
01/18/2021, 8:06 AMAlex Reyne
01/18/2021, 6:17 PMAlex Reyne
01/18/2021, 6:17 PMAlex Reyne
01/19/2021, 1:16 AMRyan
01/19/2021, 10:01 AMconnect
are correct?
If you’re still facing an issue, then you could share your schema.prisma
and query you were making so I could try to reproduce 🙂Alex Reyne
01/20/2021, 5:19 PM