talira

Apollo iOS

GraphQL client in Swift for iOS, macOS, watchOS, tvOS and visionOS, with caching and code generation

open sourceMITfree

Apollo iOS is Apollo Graph's GraphQL client written in Swift for iOS, macOS, watchOS, tvOS and visionOS. It caches results in memory or in SQLite out of the box, and its configurable code generation writes the models for network responses so you don't hand-write them. It's added with Swift Package Manager: apps link the Apollo product, and targets that only use the generated models don't need it. Apollo publishes a VS Code extension, browser DevTools and an Apollo iOS agent skill for AI assistants.

Problems it solves

  • query a GraphQL API from my iOS app without hand-writing response models
  • cache GraphQL results on device in Swift, in memory or in SQLite
  • a GraphQL client for Swift that works on macOS, watchOS and visionOS too

Features

  • In-memory or SQLite caching of GraphQL results out of the box
  • Configurable code generation of Swift models for GraphQL responses
  • Swift Package Manager package with an Apollo product to link
  • Runs on iOS, macOS, watchOS, tvOS and visionOS
  • Apollo iOS agent skill for AI assistants