Join GitHub today
Implement missing edge cases in queryArguments. #7
Previously, queryArguments was partially implemented to handle the most common types I had run into, with a TODO to complete the rest.
This change implements the support for the remaining argument types. Now, slices of T are mapped to "[T]!", and pointers to slices of T are mapped to "[T]", as per GraphQL specification.
Add a comment pointing out that commas are omitted because they're insignificant (see https://facebook.github.io/graphql/October2016/#sec-Insignificant-Commas), and we're looking to produce minified output (less bytes to send over the network).