Setup & Installation
What This Skill Does
A GraphQL client for Android, JVM, and Kotlin Multiplatform projects. It generates strongly typed Kotlin models from your GraphQL schema and operations, so you work with real types instead of parsing raw JSON. Supports queries, mutations, subscriptions, and normalized caching.
Generated Kotlin models catch schema mismatches at compile time, which eliminates a whole class of runtime errors you'd hit with manual JSON parsing or untyped clients.
When to use it
- Setting up Apollo Kotlin codegen in a Gradle project for Android or KMP
- Configuring schema download from a running GraphQL endpoint
- Adding auth headers and interceptors to an ApolloClient instance
- Writing typed GraphQL subscriptions for real-time data in a Kotlin app
- Switching from in-memory to normalized cache for offline support