João Vitor Teixeira

Results 12 comments of João Vitor Teixeira

IsWherther decorator is an excellent solution, but I'd like to share some ideas. A solution like Joi has methods like [`alternatives` and `try`](https://joi.dev/api/?v=17.8.3#alternatives). We have to pass a list of...

It's been some time since we last talked about this subject. Have there been any advancements or new information? Personally, I use [Serialization](https://docs.nestjs.com/techniques/serialization) to transform my objects without altering their...

I want to share some information that I've gathered from previous comments. Hopefully, it will be helpful to someone. ```ts type Models = keyof typeof Prisma.ModelName; type ArgsType = Prisma.TypeMap['model'][T]['operations']['findMany']['args'];...

@kdawgwilk I used `[email protected]` to run this code. It's possible that it will work with >=4.16.0.

Do you have any feedback on when it will be fixed? I start having the same issue. I'm using the following version: ```json "@prisma/client": "^4.16.0", "prisma": "^4.16.0" ```

I think my approach could help you.: ```ts class UserDto extends IntersectionType( PrismaModel.User, PickType(PrismaModel.UserRelations, ['address','documents']), ) implements Prisma.UserGetPayload{ static get include() { return Prisma.validator()({ address: true, documents: true, }) }...