99designs / gqlgen

go generate based graphql server library
https://gqlgen.com
MIT License
9.79k stars 1.14k forks source link

Export internal packages to simplify custom plugin development #2499

Open kpruden opened 1 year ago

kpruden commented 1 year ago

There are a number of useful internal utilities (notably the code and rewrite packages) that would make it much easier to implement custom plugins that generate code. Would you consider exporting these packages publicly so they can be imported outside the gqlgen codetree?

aleybovich commented 1 year ago

@kpruden not an answer, but I am trying to figure out how to write and use plugins - would you have some pointers? The documentation shows how to write one for code generation, but how to actually use I can't figure out.