Awesome Open Source
Awesome Open Source


The Swift implementation for GraphQL, a query language for APIs created by Facebook.

Swift License Slack GitHub Actions Codebeat

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.

Encoding Results

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:






This project is released under the MIT license. See LICENSE for details.

Alternative Project Comparisons
Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Swift (65,199
Language (30,057
Graphql (15,716
Schema (14,728
Facebook (13,866
Vapor (833
Query Language (562
Swift Nio (98
Graphiti (7