It would be great to have the types when making queries during development
Go to the solution
This is an accepted solution.
If anyone wants to do this in the future here's what I ended up doing:
Create an introspection query
Use the graphql-code-generator library to generate the necessary types