Files
genqlient/generate/testdata/queries/QueryWithAlias.graphql.go
T
2021-04-15 15:50:22 -07:00

39 lines
616 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 `json:"User"`
}
type QueryWithAliasUser struct {
ID mypkg.ID `json:"ID"`
OtherID mypkg.ID `json:"otherID"`
}
func QueryWithAlias(
client graphql.Client,
) (*QueryWithAliasResponse, error) {
var retval QueryWithAliasResponse
err := client.MakeRequest(
nil,
"QueryWithAlias",
`
query QueryWithAlias {
User: user {
ID: id
otherID: id
}
}
`,
&retval,
nil,
)
return &retval, err
}