You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On line 45, we see input, retval interface{}. If I am not wrong, here input means the variables of the query and retval means the reference to the output struct.
So, the first interface is input, and second one is output.
I was also confused about the variable names (#153). But in this [commit](5995653) it is clear that the first var is output, second var is input. In this commit I have fixed the issue. Fixes#153
Here, where you have defined the interface,
genqlient/graphql/client.go
Lines 41 to 46 in e0accbd
On line 45, we see
input, retval interface{}
. If I am not wrong, hereinput
means the variables of the query andretval
means the reference to the output struct.So, the first interface is input, and second one is output.
But here in the implementation,
genqlient/graphql/client.go
Line 91 in e0accbd
We see the
retval, variables interface{}
, if i am not wrong theretval
means output, andvariables
means input.So, the first interface is output, second interface is input.
The problem
On interface definition, the first var is indicating input. But in the implementation, the first var is indicating output.
I am confused.
The text was updated successfully, but these errors were encountered: