Hi, Everyone. I have a question that I haven’t bee...
# orm-help
r
Hi, Everyone. I have a question that I haven’t been able to solve so far. Please let me know if this is not the correct channel to ask ,and I will move the question to the proper channel. It’s about Prisma queries types when the
include
is present. I am requesting to Prisma in a function from a class, and want to be able to catch properly the type for the next class( kind of controller/model). It’s a NestJs app build in TS. I created a gist to give some context and my questions there https://gist.github.com/Ruffeng/0aa09c13792fe5d797d54756843f9faa Any help is highly appreciated 🙂
r
r
Ahhhh Great. Is there a way It can be optional the include, though? There are some Prisma queries that are not including the
include
and are generating a new model class
r
You need to create separate types then
One for the include and one without
r
Ok, I understand. I will try it out, then 🙂 Thank you so much for the answers, Ryan.
🙌 1