revisiting GQL and TS codegen . this article has jogged my memory on how to set it all up: https://www.datocms.com/blog/how-to-generate-typescript-types-from-graphql