Allowing composite types #298
Labels
needs/use-cases
More motivating examples needed to understand/appreciate idea/tradeoffs
type/feat
Add a new capability or enhance an existing one
Description
So far, nexus-prisma was working on the assumption that your prisma models would match your graphql type name. That limitation has already been removed, but we'd like to go one step further, by enabling the ability to "stitch" resolvers from several models.
Use-case
It might be that you have several users models (
Customer
,Admin
,Moderator
...), but that you'd like to expose them all as on single GraphQL object type.Rough proposal
Side notes
That is also be related to #302 as we'll need to handle backingTypes.
The text was updated successfully, but these errors were encountered: