chawnsphone
chawnsphone
TTCTheo's Typesafe Cult
Created by chawnsphone on 2/1/2024 in #questions
Prisma queries return type any
Installing prisma latest (5.9.1) seems to fix the issue
21 replies
TTCTheo's Typesafe Cult
Created by chawnsphone on 2/1/2024 in #questions
Prisma queries return type any
Thanks for looking into this. Y’all rock!🪨
21 replies
TTCTheo's Typesafe Cult
Created by chawnsphone on 2/1/2024 in #questions
Prisma queries return type any
Here's the default from T3
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema

generator client {
provider = "prisma-client-js"
previewFeatures = ["driverAdapters"]
}

datasource db {
provider = "mysql"
url = env("DATABASE_URL")

// Do not use foreign keys (PlanetScale does not support them)
relationMode = "prisma"
}

model Post {
id Int @id @default(autoincrement())
name String
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt

@@index([name])
}
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema

generator client {
provider = "prisma-client-js"
previewFeatures = ["driverAdapters"]
}

datasource db {
provider = "mysql"
url = env("DATABASE_URL")

// Do not use foreign keys (PlanetScale does not support them)
relationMode = "prisma"
}

model Post {
id Int @id @default(autoincrement())
name String
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt

@@index([name])
}
21 replies
TTCTheo's Typesafe Cult
Created by chawnsphone on 2/1/2024 in #questions
Prisma queries return type any
No description
21 replies
TTCTheo's Typesafe Cult
Created by chawnsphone on 2/1/2024 in #questions
Prisma queries return type any
Any help is greatly appreciated!
21 replies
TTCTheo's Typesafe Cult
Created by chawnsphone on 2/1/2024 in #questions
Prisma queries return type any
No description
21 replies
TTCTheo's Typesafe Cult
Created by chawnsphone on 3/12/2023 in #questions
Why can't I access array immediately after checking the index?
Yeah I was trying to avoid the non-null assertion, but it seems there's no way around it 🙂 thanks @JessesBeetShoppe !
4 replies