Skip to content

Commit

Permalink
fix(client): add equals and not for JsonFilter
Browse files Browse the repository at this point in the history
Closes #689
  • Loading branch information
timsuchanek committed Jun 19, 2020
1 parent 859b015 commit 3a1a4fb
Show file tree
Hide file tree
Showing 6 changed files with 487 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/packages/client/fixtures/blog/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ model Like {
post Post @relation(fields: [postId], references: [id])
@@unique([userId, postId])
}
}
6 changes: 1 addition & 5 deletions src/packages/client/fixtures/enums/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ async function main() {
// },
// })

const result = await prisma.withoutRelation.findMany({
include: {
asd: true,
},
})
const result = await prisma.withoutRelation.findMany({})
console.log(result)
prisma.disconnect()
}
Expand Down
7 changes: 4 additions & 3 deletions src/packages/client/fixtures/enums/prisma/schema.prisma
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
datasource my_db {
provider = "sqlite"
url = "file:dev.db"
provider = "postgres"
url = env("POSTGRES_URL")
}

model User {
id String @default(cuid()) @id
name String
email String @unique
status String
field Json?
permissions Permission
favoriteTree Tree
locationId Int?
Expand Down Expand Up @@ -49,4 +50,4 @@ enum Permission {
USER
OWNER
COLLABORATOR
}
}

0 comments on commit 3a1a4fb

Please sign in to comment.