37 lines
536 B
Go
37 lines
536 B
Go
package test
|
|
|
|
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
|
|
|
|
import (
|
|
"github.com/Khan/genqlient/graphql"
|
|
"github.com/me/mypkg"
|
|
)
|
|
|
|
type QueryWithAliasResponse struct {
|
|
User QueryWithAliasUser
|
|
}
|
|
|
|
type QueryWithAliasUser struct {
|
|
ID mypkg.ID
|
|
}
|
|
|
|
func QueryWithAlias(
|
|
client graphql.Client,
|
|
) (*QueryWithAliasResponse, error) {
|
|
var retval QueryWithAliasResponse
|
|
err := client.MakeRequest(
|
|
nil,
|
|
"QueryWithAlias",
|
|
`
|
|
query QueryWithAlias {
|
|
User: user {
|
|
ID: id
|
|
}
|
|
}
|
|
`,
|
|
&retval,
|
|
nil,
|
|
)
|
|
return &retval, err
|
|
}
|