I found the officially recommended GraphQL client for the GitHub v4 API to be difficult to work with, so I created my own using genql and am releasing it as a standalone package.
It is end-to-end type safe so you get functional intellisense and linting for both the input GraphQL query format as well as response data. It has zero dependencies and no requirement for any type generation process in your project. It has a relatively large bundle size, but that is due to the fact that it comes with types for the complete API. The client code itself is less than 300kb.