“Property does not exist” when I want to use model added in Prisma.schema
I tried prisma generate and prisma migrate dev but was still having the same error. I had to restart VSCode and everything is working fine now
I tried prisma generate and prisma migrate dev but was still having the same error. I had to restart VSCode and everything is working fine now
The fields in where need to be unique. If you can make some field, let’s say date @unique (date: DateTime! @unique), and use that for your where in the upsert, I think it would work (tested on my local)
If anybody running into this issue, just run npx prisma generate. This will re-establish the link between schema.prisma and .env file.