-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extending root-types #81
Comments
Thank you so much for the kind words! Basically you will end up with two variants of the same root type. We can make the type extendable in the same file (just like the |
Btw. Can I ask what other framework, if any you're using with your current approach? |
I managed to pull it off with pothos by doing addQueryField 😅 missing the inferClientTypes though |
I have added an experimental |
Hey,
I have been trying out
garph
and been loving the idea's behind it, however I have run into a few missing things for organising bigger structures.I see the similarity with both #39 and #78 and if it's too similar feel free to close this issue.
That being said, I was looking at trying out this project and tried my regular approach of doing
types/User
andtypes/Todo
, where both of these define ag.type('Query')
which seemed to override one another 😅 I think it would be really beneficial if we could extend theQuery
type in multiple files so we don't have to import everything from everywhere.I guess one of the limitations here would be the type-system, y'all have something great going with the
InferClient
, ... If I can help out anywhere feel free to say so as wellThe text was updated successfully, but these errors were encountered: