Skip to content

adam-fowler/GraphQL

 
 

Repository files navigation

GraphQL

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.

Graphiti

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.

Contributing

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:

Swift

/Sources/GraphQL/Language/AST.swift

Javascript/Typescript

/src/language/ast.js

License

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

About

The Swift GraphQL implementation for macOS and Linux

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 100.0%