more wiring for configurable context/client, theoretically should be good enough for khan use
This commit is contained in:
+10
-3
@@ -19,9 +19,13 @@ type QueryWithStructsUserAuthMethodsAuthMethod struct {
|
||||
Email string `json:"email"`
|
||||
}
|
||||
|
||||
func QueryWithStructs(client *graphql.Client) (*QueryWithStructsResponse, error) {
|
||||
func QueryWithStructs(
|
||||
client *graphql.Client,
|
||||
) (*QueryWithStructsResponse, error) {
|
||||
var retval QueryWithStructsResponse
|
||||
err := client.MakeRequest(nil, `
|
||||
err := client.MakeRequest(
|
||||
nil,
|
||||
`
|
||||
query QueryWithStructs {
|
||||
user {
|
||||
authMethods {
|
||||
@@ -30,6 +34,9 @@ query QueryWithStructs {
|
||||
}
|
||||
}
|
||||
}
|
||||
`, &retval, nil)
|
||||
`,
|
||||
&retval,
|
||||
nil,
|
||||
)
|
||||
return &retval, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user