There were bunch of libraries which helped with code generation to work around generics. I don't think it was specific to Graphql.
https://github.com/cheekybits/genny is one I have seen.
guess what generics is in a lot of languages? code generation! the files just aren't saved to disk.
IIRC on a podcast I seem to recall hearing that it was implemented this way for Go, at least for the prototype, and it seems likely to me that it is also done this way in production, but not with textual code.
As a developer now we dont have to bother about codegen.
In particular, a single expansion is shared for all pointer types.
This is a big win. They can’t get stale, they don’t need review, and you don’t have to remind everyone which files should never be edited.