more wiring for configurable context/client, theoretically should be good enough for khan use
This commit is contained in:
+10
-3
@@ -17,9 +17,13 @@ type QueryWithSlicesUser struct {
|
||||
EmailsWithNullsOrNull []string `json:"emailsWithNullsOrNull"`
|
||||
}
|
||||
|
||||
func QueryWithSlices(client *graphql.Client) (*QueryWithSlicesResponse, error) {
|
||||
func QueryWithSlices(
|
||||
client *graphql.Client,
|
||||
) (*QueryWithSlicesResponse, error) {
|
||||
var retval QueryWithSlicesResponse
|
||||
err := client.MakeRequest(nil, `
|
||||
err := client.MakeRequest(
|
||||
nil,
|
||||
`
|
||||
query QueryWithSlices {
|
||||
user {
|
||||
emails
|
||||
@@ -28,6 +32,9 @@ query QueryWithSlices {
|
||||
emailsWithNullsOrNull
|
||||
}
|
||||
}
|
||||
`, &retval, nil)
|
||||
`,
|
||||
&retval,
|
||||
nil,
|
||||
)
|
||||
return &retval, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user