Replies: 1 comment
-
|
Great work bro |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, this is a general - and hopefuly naive - quetion. Being a nexus user from the early stage I am repeatedly in the need for a way to work and transform the nexus types.
Taking inspiration from typescript, I would absolutely love a way to create a new type from another type by whitelisting or blacklisting fields (like Pick and Omit). Other transformation types can be imagined.
I have been implementing tooling to generate new types around a given one (like the search result from the node type), but figuring a way to thus derive types is lost on me - except from registering fields as objects and use that in the definition block, but i'd like to offer a turnkey solution. Maybe by getting the generated "graphql-js" objects ?
It seems I can get infos about the types from the
coreexport, but is that the way I should follow ? Is there something else ?Thanks a lot.
Beta Was this translation helpful? Give feedback.
All reactions