smykes
PPrisma
•Created by smykes on 12/26/2024 in #help-and-questions
Programatic where clause based off query parameters.
@Nurul (Prisma) how do I handle this? Am I using this right? It's a fairly straight forward sort, I just have been banging my head
11 replies
PPrisma
•Created by smykes on 12/26/2024 in #help-and-questions
Programatic where clause based off query parameters.
A little frustrating
11 replies
PPrisma
•Created by smykes on 12/26/2024 in #help-and-questions
Programatic where clause based off query parameters.
sort in query paramters are supposed to be "asc" or "desc" or not there
11 replies
PPrisma
•Created by smykes on 12/26/2024 in #help-and-questions
Programatic where clause based off query parameters.
11 replies
PPrisma
•Created by smykes on 12/26/2024 in #help-and-questions
Programatic where clause based off query parameters.
Would order_by be similar?
11 replies
PPrisma
•Created by smykes on 12/26/2024 in #help-and-questions
Programatic where clause based off query parameters.
I forgot how to mark this complete
11 replies
PPrisma
•Created by smykes on 12/26/2024 in #help-and-questions
Programatic where clause based off query parameters.
That worked, you are a gentle person and a scholar.
11 replies
PPrisma
•Created by smykes on 12/19/2024 in #help-and-questions
Strange type error in seeding file
yeah after running a migration it does
11 replies
PPrisma
•Created by smykes on 12/19/2024 in #help-and-questions
Strange type error in seeding file
and still getting the same typescript error, not sure what to do
11 replies
PPrisma
•Created by smykes on 12/19/2024 in #help-and-questions
Strange type error in seeding file
So I changed my schema to
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
model Book {
id String @id @default(uuid())
author String
avg_rating Int
book_id Int
createdAt DateTime @default(now())
date_read String
isbn String
isbn_13 String
month_read Int
number_of_pages Int
publisher String
shelf String
title String @db.VarChar(200)
user_rating Int
year_read Int
}
11 replies
PPrisma
•Created by smykes on 12/19/2024 in #help-and-questions
Strange type error in seeding file
Nope that wasn't it. How do I do a varchar?
11 replies
PPrisma
•Created by smykes on 12/19/2024 in #help-and-questions
Strange type error in seeding file
I think it might be
title String @db.VarChar(200)
11 replies
PPrisma
•Created by smykes on 12/19/2024 in #help-and-questions
Strange type error in seeding file
If there is no VARCHAR type, how should I get around this @Nurul
11 replies
PPrisma
•Created by smykes on 12/19/2024 in #help-and-questions
Strange type error in seeding file
Of course, the data export decided the Orwell book 1984 should be a number and not a string. Leaving this open as I will have another question I believe. Thank you @Nurul guess I'm writing a migration file
11 replies