The Swift implementation for GraphQL, a query language for APIs created by Facebook.
Looking for help? Find resources from the community.
This repo only contains the core GraphQL implementation. For a better experience when creating your GraphQL schema use Graphiti.
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. To preserve this order, GraphQLResult
should be encoded using the GraphQLJSONEncoder
provided by this package.
Most of this repo mirrors the structure of the canonical GraphQL implementation written in Javascript/Typescript. If there is any feature missing, looking at the original code and "translating" it to Swift works, most of the time. For example:
/Sources/GraphQL/Language/AST.swift
This project is released under the MIT license. See LICENSE for details.