Skip to content

Commit

Permalink
fix(client): raw transactions (#4759)
Browse files Browse the repository at this point in the history
  • Loading branch information
timsuchanek committed Dec 22, 2020
1 parent 500e37e commit b7dd254
Show file tree
Hide file tree
Showing 8 changed files with 605 additions and 87 deletions.
Expand Up @@ -32,30 +32,6 @@ test('missing-relation', async () => {
how you used Prisma Client in the issue.
`)
// try {
// } catch (e) {
// expect(e).toMatchInlineSnapshot(`

// Invalid \`prisma.post.findMany()\` invocation in
// /client/src/__tests__/integration/errors/missing-relation/test.ts:9:23

// 6 const prisma = new PrismaClient()
// 7
// 8 try {
// → 9 await prisma.post.findMany(
// PANIC in query-engine/core/src/response_ir/internal.rs:348:26
// Application logic invariant error: received null value for field author which may not be null

// This is a non-recoverable error which probably happens when the Prisma Query Engine has a panic.

// TEST_GITHUB_LINK

// If you want the Prisma team to look into it, please open the link above 🙏
// To increase the chance of success, please post your schema and a snippet of
// how you used Prisma Client in the issue.

// `)
// }

prisma.$disconnect()
})
Expand Down
@@ -0,0 +1 @@
!dev.db
Binary file not shown.
@@ -0,0 +1,29 @@
datasource db {
provider = "sqlite"
url = "file:dev.db"
default = true
}

generator client {
provider = "prisma-client-js"
}

// / User model comment
model User {
id String @id @default(uuid())
email String @unique
// / name comment
name String?
posts Post[]
}

model Post {
id String @id @default(cuid())
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
published Boolean
title String
content String?
authorId String?
author User? @relation(fields: [authorId], references: [id])
}

0 comments on commit b7dd254

Please sign in to comment.