-
Hi! I have roughly a following structure:
However, currently with following approach: I roughly end up with following schema:
So there is an unnecessary level of extra nesting. Ideally the edge would contain the CompanyUser info rather than the node. Is there a way to achieve the first schema with
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
this is something that hasn't been easy to do so far. I am working on making it easier to build custom connections that still take advantage of the optimizations the prisma plugin can do. Work in progress is in #671 |
Beta Was this translation helpful? Give feedback.
-
Added some new docs on a potential way to implement this here: https://pothos-graphql.dev/docs/plugins/prisma#extending-connection-edges |
Beta Was this translation helpful? Give feedback.
Added some new docs on a potential way to implement this here: https://pothos-graphql.dev/docs/plugins/prisma#extending-connection-edges