Skip to content

2.2.0 - Chameleon Chords

Compare
Choose a tag to compare
@NeedleInAJayStack NeedleInAJayStack released this 02 Feb 17:05
151c2f1

If you encode a GraphQLResult with an ordinary JSONEncoder, there are no guarantees that the field order will match the query, violating the GraphQL spec.

This adds a GraphQLJSONEncoder type that a client can use to ensure that order is preserved when a Map is encoded. It is exactly the same as Foundation's JSONEncoder, but uses OrderedDictionary everywhere Dictionary was used.

Merges: #94