more wiring for configurable context/client, theoretically should be good enough for khan use
This commit is contained in:
+10
-3
@@ -15,15 +15,22 @@ type QueryWithDoubleAliasUser struct {
|
||||
AlsoID string
|
||||
}
|
||||
|
||||
func QueryWithDoubleAlias(client *graphql.Client) (*QueryWithDoubleAliasResponse, error) {
|
||||
func QueryWithDoubleAlias(
|
||||
client *graphql.Client,
|
||||
) (*QueryWithDoubleAliasResponse, error) {
|
||||
var retval QueryWithDoubleAliasResponse
|
||||
err := client.MakeRequest(nil, `
|
||||
err := client.MakeRequest(
|
||||
nil,
|
||||
`
|
||||
query QueryWithDoubleAlias {
|
||||
user {
|
||||
ID: id
|
||||
AlsoID: id
|
||||
}
|
||||
}
|
||||
`, &retval, nil)
|
||||
`,
|
||||
&retval,
|
||||
nil,
|
||||
)
|
||||
return &retval, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user