DollarNavalex
Explore posts from serversPPrisma
•Created by DollarNavalex on 6/12/2024 in #help-and-questions
Export client types in custom package
Turborepo seems to be maybe a solution. The other problem is that all my projects doesn't runs in the same environment. While my backend is running in a docker container, my app can't because i'm building it for iOS and need my macOS tools to work on, don't know if turborepo would be good with this differences
2 replies
PPrisma
•Created by DollarNavalex on 5/27/2024 in #help-and-questions
Extend client Type loose relation
And adding them manually would have force me to explicitly define all Preferences properties too, since the prisma findUnique function doesn't return a Preferences object, but a custom object based on my query (from what I understand), so the object is not Exactly like the Preferences object would be.
Here is what i done for my issue:
And here is a source for type helpers of prisma: https://www.prisma.io/docs/orm/prisma-client/type-safety/operating-against-partial-structures-of-model-types
5 replies
PPrisma
•Created by DollarNavalex on 5/27/2024 in #help-and-questions
Extend client Type loose relation
Hi, I finally found the Type Helpers on the doc, works much better now, thanks 🙂
5 replies
PPrisma
•Created by DollarNavalex on 4/24/2024 in #help-and-questions
Extends result relations
My goal would be to have access to an Exoskeleton object on the User object, based on a query from the ExoskeletonAttribution
2 replies