Saturn 🪐
Saturn 🪐
Explore posts from servers
PPrisma
Created by Saturn 🪐 on 1/31/2025 in #help-and-questions
getting data from prismaClient says field might be null when it literally isn't in the schema
yeah i ended up using a type assertion because while searching i learned that for some reason postgres can have true, false and null for boolean ehich is weird
10 replies
PPrisma
Created by Saturn 🪐 on 1/31/2025 in #help-and-questions
getting data from prismaClient says field might be null when it literally isn't in the schema
i have another field marked as
detail String @db.VarChar
detail String @db.VarChar
in the schema but is also marked as potential null, wth?
10 replies
PPrisma
Created by Saturn 🪐 on 1/31/2025 in #help-and-questions
getting data from prismaClient says field might be null when it literally isn't in the schema
+i'm using postgres as a database
10 replies
PPrisma
Created by Saturn 🪐 on 1/31/2025 in #help-and-questions
getting data from prismaClient says field might be null when it literally isn't in the schema
i did npx prisma db pull and npx prisma generate multiple times, still nothing i already hate the fact that i have to cast Decimal to number, but this shouldn't be this way
10 replies