hasura / go-graphql-client

Package graphql provides a GraphQL client implementation.
MIT License
405 stars 94 forks source link

Call v.Elem() to cast interface{} away (followup for #20) #21

Closed grihabor closed 2 years ago

grihabor commented 2 years ago

It's a followup for #20, which introduced [][2]interface{} to allow building arbitrary queries at runtime. But when we access interface{} in reflect we need to call v.Elem() to get the actual object inside. This is properly done in the pr

grihabor commented 2 years ago

@hgiasac Could you check this out please?

grihabor commented 2 years ago

Thanks! Could you release it please? maybe 0.5.1

hgiasac commented 2 years ago

Done https://github.com/hasura/go-graphql-client/releases/tag/v0.5.1

grihabor commented 2 years ago

Thank you!