📣 GraphQLConf 2024 • Sept 10-12 • San Francisco • Check out the Schedule & Get Your Ticket • Read more

Code Using GraphQL

Sort by:
Apollo iOS
A GraphQL client for iOS that returns results as query-specific Swift types, and integrates with Xcode to show your Swift source and GraphQL side by side, with inline validation errors.
Last release 4 days ago4kMIT License
SwiftGraphQL
A GraphQL client that lets you forget about GraphQL.
Last release 2 months ago1kMIT License
README

SwiftGraphQL is a Swift code generator and a lightweight GraphQL client. It lets you create queries using Swift, and guarantees that every query you create is valid.

The library is centered around three core principles:

🚀 If your project compiles, your queries work. 🦉 Use Swift in favour of GraphQL wherever possible. 🌳 Your application model should be independent of your schema.

Here’s a short preview of the SwiftGraphQL code

import SwiftGraphQL
 
// Define a Swift model.
struct Human: Identifiable {
    let id: String
    let name: String
    let homePlanet: String?
}
 
// Create a selection.
let human = Selection.Human {
    Human(
        id: try $0.id(),
        name: try $0.name(),
        homePlanet: try $0.homePlanet()
    )
}
 
// Construct a query.
let query = Selection.Query {
    try $0.humans(human.list)
}
 
// Perform the query.
send(query, to: "http://swift-graphql.heroku.com") { result in
    if let data = try? result.get() {
        print(data) // [Human]
    }
}
Graphiti
Swift library for building GraphQL schemas/types fast, safely and easily.
Last release 4 months ago1kMIT License
Graphaello
A Tool for Writing Declarative, Type-Safe and Data-Driven Applications in SwiftUI using GraphQL and Apollo
Last release 2 years ago494MIT License
GraphZahl
Swift library for writing Declarative, Type-Safe GraphQL APIs with Zero Boilerplate.
Last release 2 years ago143MIT License
GraphQL iOS
An Objective-C GraphQL client for iOS.
62MIT License
GraphQLite iOS
GraphQLite iOS SDK is a toolkit to work with GraphQL servers easily. It also provides several other features to make life easier during iOS application development.
Last release 6 months ago5MIT License