Swiftpack.co - GraphQLSwift/GraphQL as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
The Swift GraphQL implementation for macOS and Linux
.package(url: "https://github.com/GraphQLSwift/GraphQL.git", from: "2.1.1")


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.


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.


Stars: 848
Last commit: 1 week ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.


Release Notes

2.1.1 - Red Raven
2 weeks ago

This release adds a fix to differentiate explicit nulls from unprovided values in object variables and non-object arguments. It also fixes a bug with pre-validating argument inputs against their type. Finally, it adjusts Void() calls to () to support recent development toolchains.


Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics