docs
                                
                                 docs copied to clipboard
                                
                                    docs copied to clipboard
                            
                            
                            
                        Docs for advanced type safety incorrect
Bug description
https://www.prisma.io/docs/concepts/components/prisma-client/advanced-type-safety#importing-generated-types

The whole docs page is doing explicit type casts. Those will however lose the type information. The example in the screenshot is additionally incorrect. When only querying posts, you'd have profile only.
We used to have some utility types for these cases. @millsp probably knows where we have them.
How to reproduce
Expected behavior
No response
Prisma information
Environment & setup
- OS:
- Database:
- Node.js version:
Prisma Version
Hey @timsuchanek ! Hmm, I tested this and you do get both profile and posts in the userPosts type:

I'll chat with @millsp though 😀
cc @andrew-walford-prisma @tanberry