-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Update generated stubs #216
Comments
Regarding conflicts, the way I've been thinking about this is: Add resolver no conflict, ideally add in the proper order as the schema, but bottom of the file is okay too. Update resolver schema is source of truth, update function signature, but don't change function body. If the user defined return value variables, leave those intact too. Cheap alternative is to just print out what needs to be changed and let the user do it manually. Delete resolver never delete code. Instead, mark the resolver as unused by prepending |
any update? |
Apparently https://github.com/dave/dst is a thing that is good |
Any progress on this? |
2 similar comments
Any progress on this? |
Any progress on this? |
It would be very useful to compare current schema to a set of RootResolvers (passed in as args? maybe in config?) and add any missing resolvers as stubs to the generated code.
Bonus points for dealing with conflicts.
This is a long standing idea thats been floating around since #9.
@matthewmueller mentioned golang/go#20744 might make this tricky. Perhaps it needs to use the AST to make decisions but do the edits on the raw file bytes?
The text was updated successfully, but these errors were encountered: