From 5401a62dcbb87a77cb79250257a0c77eafb50f5b Mon Sep 17 00:00:00 2001 From: Hasibul Hasan Date: Fri, 5 Nov 2021 22:21:45 +0600 Subject: [PATCH] TYPO: Fixed variable name and position in interface definition. (#154) I was also confused about the variable names (#153). But in this [commit](https://github.com/Khan/genqlient/commit/5995653583af6e8d42477652f7d51ac4201b9fe6) it is clear that the first var is output, second var is input. In this commit I have fixed the issue. Fixes #153 --- graphql/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphql/client.go b/graphql/client.go index f938b25..82b6a00 100644 --- a/graphql/client.go +++ b/graphql/client.go @@ -42,7 +42,7 @@ type Client interface { ctx context.Context, opName string, query string, - input, retval interface{}, + retval, input interface{}, ) error }