TODO: un-export this since it couples the caller heavily to api.GraphQLClient
(operationName string, query interface{}, variables map[string]interface{})
| 99 | |
| 100 | // TODO: un-export this since it couples the caller heavily to api.GraphQLClient |
| 101 | func (c *Client) Mutate(operationName string, query interface{}, variables map[string]interface{}) error { |
| 102 | err := c.apiClient.Mutate(operationName, query, variables) |
| 103 | return handleError(err) |
| 104 | } |
| 105 | |
| 106 | func (c *Client) Query(operationName string, query interface{}, variables map[string]interface{}) error { |
| 107 | err := c.apiClient.Query(operationName, query, variables) |