add option to export all operations

This commit is contained in:
Ben Kraft
2021-04-01 13:11:23 -07:00
parent de038dc428
commit fbf00f3bef
21 changed files with 124 additions and 52 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ func NewClient(endpoint string, httpClient *http.Client) Client {
type payload struct {
Query string `json:"query"`
Variables map[string]interface{} `json:"variables"`
Variables map[string]interface{} `json:"variables,omitempty"`
// OpName is only required if there are multiple queries in the document,
// but we set it unconditionally, because that's easier.
OpName string `json:"operationName"`