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
Copy file name to clipboardExpand all lines: CHANGELOG-ELM-PACKAGE.md
+29Lines changed: 29 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,35 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
9
9
10
10
## [Unreleased]
11
11
12
+
## [5.0.10] - 2022-06-20
13
+
14
+
### Changed
15
+
16
+
- Hashes are now only included in the GraphQL query when they are needed to disambiguate between other sibling fields that would cause a name collision.
17
+
These details aren't important if you don't depend on any internals, but they will reduce noise when inspecting requests for debugging purposes. Note that
18
+
it's still important not to depend on any low-level details - be sure not to write code that depends on whether or not field aliases with hashes are used
19
+
as `elm-graphql` abstracts away these details.
20
+
21
+
This change means that many fields will be unhashed now:
22
+
23
+
```diff
24
+
query {
25
+
- avatar2648687506: avatar(size: 1)
26
+
+ avatar(size: 1)
27
+
}
28
+
```
29
+
30
+
However, a query like this will still have hashed field aliases because the hashes are needed to avoid a name collision when we query avatar twice at the same level within a selection set:
31
+
32
+
```graphql
33
+
query {
34
+
avatar0: avatar
35
+
avatar2648687506: avatar(size: 1)
36
+
}
37
+
```
38
+
39
+
Thank you [@hariroshan](https://github.com/hariroshan) for thinking of this improvement and implementing it! See PR [#596](https://github.com/dillonkearns/elm-graphql/pull/596).
0 commit comments