Garrett Tolbert
12/04/2021, 3:33 AMupsert() method as a findorCreate implementation, I get { count: 0 } . This is only happening when a user is already in the database. Can someone tell me why this is happening? Below is a snippet of the method call.
const user = await prisma.user.upsert({
where: { email: profile.emails[0].value },
update: {},
create: {
email: profile.emails[0].value,
name: profile.displayName,
},
});Lukáš Stuchlík
12/05/2021, 1:31 PMupdate field => 0 entities were changed ? just a guess, not confirmed personally