Compact GraphQL queries
Create a tool to compact GraphQL queries using go:generate and update gock matchers to then take compacted queries so we can assert variables as well.
See https://github.com/golang/go/wiki/Modules#how-can-i-track-tool-dependencies-for-a-module for how to track the tool dependency while using it only during tool runs. Also see https://spec.graphql.org/draft/#sec-Document: a .graphql file can contain multiple named definitions, or a single unnamed definition. Given this, might be worth a separate tool if none other can be found.
https://pkg.go.dev/github.com/wundergraph/graphql-go-tools may be of some use. It has separate parse and visitor modules that could be useful to generate not only compacted GraphQL constants, but also data structures if desired: generating data structures should be considered pri-2 though since I don't really need or even want them for this project. For example, several data structures are reused for multiple definitions that have a subset of nodes.
For some inspiration, see https://go.dev/blog/generate and https://cs.opensource.google/go/x/tools/+/master:cmd/stringer/stringer.go