ptrxyz
Explore posts from serversPPrisma
•Created by ptrxyz on 3/12/2025 in #help-and-questions
n:m relations between tables and view
Do you know if there will be added a bit more love to views in the future? I found that the
view
preview feature is on the agenda for March/25 -> August/25. So there might still be improvements?10 replies
PPrisma
•Created by ptrxyz on 3/12/2025 in #help-and-questions
n:m relations between tables and view
Further it seems that prisma doesn't check the validity of column types. I could use "String" instead of "Int" for example and I wouldn't get any "compile time" errors, only failures during runtime :/
10 replies
PPrisma
•Created by ptrxyz on 3/12/2025 in #help-and-questions
n:m relations between tables and view
However i then it is a bit cumbersome to maintain the tables:
This would probably be fine for a single relation, but it doesn't scale well. :/
10 replies
PPrisma
•Created by ptrxyz on 3/12/2025 in #help-and-questions
n:m relations between tables and view
I figured that when i create the tables manually with the names prisma expects, then i can use them in the 'normal' way:
prisma.myview.findMany({ include: { ... }})
10 replies
PPrisma
•Created by ptrxyz on 3/12/2025 in #help-and-questions
n:m relations between tables and view
Does anyone know more about this?
10 replies
PPrisma
•Created by ptrxyz on 3/12/2025 in #help-and-questions
n:m relations between tables and view
I don't get what the problem is, can someone shed some light?
10 replies
PPrisma
•Created by ptrxyz on 3/12/2025 in #help-and-questions
n:m relations between tables and view
to add context:
10 replies
PPrisma
•Created by ptrxyz on 1/28/2025 in #help-and-questions
type-safely wrapping `findMany`
Thanks a bunch!
10 replies
PPrisma
•Created by ptrxyz on 1/28/2025 in #help-and-questions
type-safely wrapping `findMany`
yes, this seems to be what i need. one thing about the args, i had to change SelectSubset to Prisma.Exact to make it work, but it does what it should now!
10 replies
PPrisma
•Created by ptrxyz on 1/28/2025 in #help-and-questions
type-safely wrapping `findMany`
let me see if it works
10 replies
PPrisma
•Created by ptrxyz on 1/28/2025 in #help-and-questions
type-safely wrapping `findMany`
thanks so far
10 replies
PPrisma
•Created by ptrxyz on 1/28/2025 in #help-and-questions
type-safely wrapping `findMany`
I will give it a try in a few!
10 replies
PPrisma
•Created by ptrxyz on 1/28/2025 in #help-and-questions
type-safely wrapping `findMany`
Does anyone have an idea about this? I am still wondering how to do it 😄
10 replies
PPrisma
•Created by ptrxyz on 9/24/2024 in #help-and-questions
concat two Prisma.sql queries.
Thanks a lot! I'll give it a try!
8 replies
PPrisma
•Created by ptrxyz on 9/24/2024 in #help-and-questions
concat two Prisma.sql queries.
So I can simply wrap the queries in a new Prisma.sql?
8 replies
PPrisma
•Created by ptrxyz on 9/24/2024 in #help-and-questions
concat two Prisma.sql queries.
yes!
8 replies
PPrisma
•Created by ptrxyz on 9/24/2024 in #help-and-questions
concat two Prisma.sql queries.
any ideas anyone?
8 replies
PPrisma
•Created by ptrxyz on 3/17/2024 in #help-and-questions
Multiple Prisma clients and connection pooling
Oh, just found this:
https://www.prisma.io/docs/orm/prisma-client/client-extensions#extended-clients
2 replies