allow interface{} as a scalar

This commit is contained in:
Ben Kraft
2021-04-15 11:50:52 -07:00
parent a5fe0943bd
commit ddf4b03350
6 changed files with 49 additions and 1 deletions
+29
View File
@@ -0,0 +1,29 @@
package test
// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
import (
"github.com/Khan/genqlient/graphql"
)
type EmptyInterfaceResponse struct {
GetJunk interface{} `json:"getJunk"`
}
func EmptyInterface(
client graphql.Client,
) (*EmptyInterfaceResponse, error) {
var retval EmptyInterfaceResponse
err := client.MakeRequest(
nil,
"EmptyInterface",
`
query EmptyInterface {
getJunk
}
`,
&retval,
nil,
)
return &retval, err
}