This is super cool. It looks very similar to graphql-binding https://github.com/graphql-binding/graphql-binding
GraphQL Bindings are generated from a GraphQL schema and provides static typing in various languages. Right now code-gen for typescript is supported. Scroll down a bit on https://www.prismagraphql.com/ for a short video demonstrating how this works in practice.
I'm very happy that more projects are exploring code-gen for GraphQL.