nexus-prisma Questions
4
Solved
This is more a design question than a coding question. Suppose the following schema:
// schema.prisma
// Solution 1
model Entity {
id Int @id @default(autoincrement())
attrs EntityAttr[]
}
mod...
Oldcastle asked 17/9, 2021 at 14:11
2
Solved
I need save DECIMAL(10,2) in database. In MySQL there is DECIMAL type.
MySQL docs:
https://dev.mysql.com/doc/refman/8.0/en/fixed-point-types.html
Prisma 2.0 docs:
https://www.prisma.io/do...
Hanschen asked 26/4, 2020 at 23:23
1
Solved
What is the best way to keep order of nested objects in the schema.
My schema:
type Article {
id: ID! @id
pages: [Page!]!
}
type Page {
id: ID! @id
}
This is how I'm trying to sort the page...
Richter asked 27/5, 2019 at 8:25
1
© 2022 - 2024 — McMap. All rights reserved.