You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When querying a very abstract API (e.g., "find me database entry X"),
the name of fields may be better named in the query side.
Generated type names also have to use the alias because queries can bind
different field selections of the same field to different aliases.
Fixes#5.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
40
40
41
41
- Improved some codegen error messages, giving more context. Thank @mathstuf!
42
42
43
+
- Aliases in queries are now supported.
44
+
43
45
### Fixed
44
46
45
47
- Handle all Rust keywords as field names in codegen by appending `_` to the generated names, so a field called `type` in a GraphQL query will become a `type_` field in the generated struct. Thanks to @scrogson!
0 commit comments