Files
genqlient/generate/testdata/snapshots/TestGenerate-EmptyInterface.graphql-EmptyInterface.graphql.go
T
Adam Babik f0c2ac17a9 Move 'Code generated by' disclaimer up (#161)
`Code generated by` disclaimer should be at the top of the file, as it is demonstrated in [this article](https://go.dev/blog/generate) on The Go Blog.

The current placing breaks integration with some code formatters and linters which do no skip files generated by `genqlient`.
2021-12-20 10:04:13 -05:00

44 lines
1.1 KiB
Go

// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package test
import (
"github.com/Khan/genqlient/graphql"
)
// EmptyInterfaceResponse is returned by EmptyInterface on success.
type EmptyInterfaceResponse struct {
GetJunk interface{} `json:"getJunk"`
GetComplexJunk []map[string]*[]*map[string]interface{} `json:"getComplexJunk"`
}
// GetGetJunk returns EmptyInterfaceResponse.GetJunk, and is useful for accessing the field via an interface.
func (v *EmptyInterfaceResponse) GetGetJunk() interface{} { return v.GetJunk }
// GetGetComplexJunk returns EmptyInterfaceResponse.GetComplexJunk, and is useful for accessing the field via an interface.
func (v *EmptyInterfaceResponse) GetGetComplexJunk() []map[string]*[]*map[string]interface{} {
return v.GetComplexJunk
}
func EmptyInterface(
client graphql.Client,
) (*EmptyInterfaceResponse, error) {
var err error
var retval EmptyInterfaceResponse
err = client.MakeRequest(
nil,
"EmptyInterface",
`
query EmptyInterface {
getJunk
getComplexJunk
}
`,
&retval,
nil,
)
return &retval, err
}