Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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, and we're looking to produce minified output (less bytes to send over the network). Fixes #6.
- Loading branch information
Showing
2 changed files
with
74 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters