MyGit

2.2.0

GraphQLSwift/GraphQL

版本发布时间: 2022-02-03 01:05:43

GraphQLSwift/GraphQL最新发布版本:2.10.1(2024-09-25 23:09:14)

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: https://github.com/GraphQLSwift/GraphQL/pull/94

相关地址:原始地址 下载(tar) 下载(zip)

查看:2022-02-03发行的版本