WIP on config

This commit is contained in:
Ben Kraft
2020-01-03 11:02:31 -08:00
parent 12605986d0
commit bf5d04939e
5 changed files with 95 additions and 27 deletions
+1
View File
@@ -30,6 +30,7 @@ type payload struct {
}
func (client *Client) MakeRequest(ctx context.Context, query string, retval interface{}, variables map[string]interface{}) error {
// TODO: streaming reads and writes
body, err := json.Marshal(payload{
Query: query,
Variables: variables,