Skip to content

Problem with prisma .upsert, Unkown argument

I have problem with prisma upsert(), I get info: PrismaClientValidationError: Invalid prisma.prismaUser.upsert() invocation: { where: { email: ‘viola@prisma.io’ ~~~~~ }, update: { name: ‘Viola the Magnificent’ }, create: { email: ‘viola@prisma.io’, name: ‘Viola the Ma…

JS – Calculate an interval for a given number

I am trying to generalize the following function that I have implemented: Basically, in this method, I group the age of my users using a minimum age and a range. Here is an example: For now, the method is only working for “ages”. But I suppose it is possible to make it work with any type of number…