shurcooL / graphql

Package graphql provides a GraphQL client implementation.
MIT License
708 stars 282 forks source link

Take into account reflect changes in Go 1.10. #11

Open dmitshur opened 6 years ago

dmitshur commented 6 years ago

See https://tip.golang.org/doc/go1.10#reflect. As a result, there are certain types of queries that we won't be able to unmarshal into successfully. Need to decide where to detect the situation, and how to deal with it. (The current code may panic for such queries.)

The fix will be roughly similar to encoding/json changes in 1.10.

I've already started work on this locally.