You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 14, 2021. It is now read-only.
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "sqlite"
url = env("DATABASE_URL")
}
model Post {
authorId Int?
content String?
id Int @default(autoincrement()) @id
published Boolean @default(false)
title String
User User? @relation(fields: [authorId], references: [id])
}
model User {
email String @unique
id Int @default(autoincrement()) @id
name String?
Post Post[]
Profile Profile?
}
model Profile {
bio String?
id Int @default(autoincrement()) @id
userId String @unique
User User @relation(fields: [userId], references: [id])
}
Environment & setup
Prisma version: 2.0.0-beta.2
The text was updated successfully, but these errors were encountered:
Thanks for reporting!
Although the behavior is very ugly, it's the expected behavior right now.
Therefore I remove the bug label.
This is for sure something we can change, just a bit of more thinking and product work is needed.
Bug description
findMany
accepts a non-array value when filtering withOR
even thoughOR
requires an array.The following is 'allowed' but does NOT return the expected results:
Correct syntax is:
Expected behavior
OR
does not accept non-array value.Prisma information
Schema from TypeScript starter project (https://www.prisma.io/docs/getting-started/quickstart?lang=typescript):
Environment & setup
The text was updated successfully, but these errors were encountered: