Giorgio Delgado
06/07/2021, 7:00 PMshow CREATE TABLE <table name>;Wuxxy
06/08/2021, 2:58 AMSascha Ormanns
06/08/2021, 7:52 AMLevi Lawliet
06/08/2021, 8:15 AMshahrukh ahmed
06/08/2021, 8:50 AMDev__
06/08/2021, 9:43 AMcatch, but when I do this with a transaction I do not get any error info at all, only a clientVersion. Is there a way to get the same error info as when I am not using a transactionDaniel Olavio Ferreira
06/08/2021, 10:14 AMimport { Users } from ".prisma/client/index.d.ts";
export type User = Users;Nichita Z
06/08/2021, 12:20 PMNichita Z
06/08/2021, 12:20 PMNichita Z
06/08/2021, 12:21 PMNichita Z
06/08/2021, 12:22 PMDaniel Olavio Ferreira
06/08/2021, 1:08 PMJake Quinter
06/08/2021, 1:33 PMbrettski
06/08/2021, 1:40 PMyes, why take a chance. What have you found to be the best practice around this?jasci
06/08/2021, 2:45 PMbrettski
06/08/2021, 3:30 PMprisma migrate status which can return only if schema is up-to-day, all migrations applied. status does this but also contains a lot of other info making it difficult to parse. I am looking to us it for script logic conditions.Nichita Z
06/08/2021, 3:32 PMNichita Z
06/08/2021, 3:32 PMNichita Z
06/08/2021, 3:33 PMlikes User[] @relation(name: "liked") which seems correctKent C. Dodds
06/08/2021, 4:05 PMAndres - Andreshvas
06/08/2021, 7:10 PMAlexander Lang
06/08/2021, 9:23 PMGraphQLError: PANIC in query-engine/connectors/sql-query-connector/src/database/operations/write.rs:95:60
called `Result::unwrap()` on an `Err` value: ScalarFieldNotFound
I downgraded from 2.24 to 2.21 and it disappeared. The error seemed to indicate that some column couldn't be found.Julian
06/08/2021, 9:53 PMdata and count in one function call?
TypeORM has a function for this called .findManyAndCount() and I was wondering if Prisma had something similar.
I found .count() but this is results in two calls: one for the data, and one for the count.
This can get quite complex with relations and joins, adding a lot of code and overhead.
Would be great if there is a way to combine them 🙂Daniel Olavio Ferreira
06/09/2021, 6:05 AMuuid() function inside of the @default() . Maybe that can be causing prisma to regenerate something or to reload data in some way. Because its trying to create new uuidsEmeka Mamah
06/09/2021, 12:36 AMprisma migrate dev successfully on a heroku postgres database?migz
06/09/2021, 5:35 AMmigz
06/09/2021, 5:36 AMmodel Category {
id Int @id @default(autoincrement())
name String
posts Post[]
}
model Post {
id Int @id @default(autoincrement())
title String
content String?
categories Category[]
}migz
06/09/2021, 5:36 AM[
{
name: 'some name',
posts: [ { title: 'title', content: 'some content' }, ....]
},
{ ....}
]Arun Kumar
06/09/2021, 7:45 AM{"error":{"clientVersion":"2.23.0"}}Daniel Laera
06/09/2021, 7:48 AM