It was created a new field to define the resolver item response object. But it is only possible for primitive data types.
Also, would be great to inherite the sourceType by "t.string()" method, so we only need to declare complex data structures. Which can be resolved to NexusGenRootTypes[${sourceType}]
Related to the already fixed issue: https://github.com/graphql-nexus/nexus/issues/1006
It was created a new field to define the resolver item response object. But it is only possible for primitive data types. Also, would be great to inherite the sourceType by "t.string()" method, so we only need to declare complex data structures. Which can be resolved to NexusGenRootTypes[
${sourceType}
]Ends up generating:
As a workaround it is possible to declare the type as