Closed hgiasac closed 1 year ago
close https://github.com/hasura/go-graphql-client/issues/48
Because the query parser infers and creates a new instance from the reflection type, it doesn't work if the GetGraphQLType method returns the dynamic type of struct property from the input variable.
GetGraphQLType
type customTypeHint struct { Hint string } func (cth *customTypeHint) GetGraphQLType() string { return cth.hint } q := queryArguments(variables map[string]interface{} { "foo": customTypeHint{ Hint: "bar" } }) // expected // $foo:bar! // actual // $foo:!
close https://github.com/hasura/go-graphql-client/issues/48
Because the query parser infers and creates a new instance from the reflection type, it doesn't work if the
GetGraphQLType
method returns the dynamic type of struct property from the input variable.