Load your graphql documents with webpack (Apollo)
You can write queries and mutations in a .graphql
file and directly import that into your JS code
One of the first things that people comment when talking about work with Graphql is about the colocation of the queries…