
Description
Guide for building applications with Apollo Kotlin, the GraphQL client library for Android and Kotlin. Use this skill when: (1) setting up Apollo Kotlin in a Gradle project for Android, Kotlin/JVM, or KMP, (2) configuring schema download and codegen for GraphQL services, (3) configuring an `ApolloClient` with auth, interceptors, and caching, (4) writing queries, mutations, or subscriptions,
SKILL.md
Apollo Kotlin Guide
Apollo Kotlin is a strongly typed GraphQL client that generates Kotlin models from your GraphQL operations and schema, that can be used in Android, JVM, and Kotlin Multiplatform projects.
Process
Follow this process when adding or working with Apollo Kotlin:
- Confirm target platforms (Android, JVM, KMP), GraphQL endpoint(s), and how schemas are sourced.
- Configure Gradle and code generation, including custom scalars
- Create a shared
ApolloClientwith auth, logging, and caching. - Implement operations.
- Validate behavior with tests and error handling.
Reference Files
- Setup - Gradle plugin, schema download, codegen config (including scalars), client configuration (auth, logging, interceptors)
- Operations - Queries, mutations, subscriptions, and how to execute them
- Caching - Setup and use the normalized cache
- Migration Guide - Migrate from Apollo Kotlin 4
Scripts
- list-apollo-kotlin-versions.sh - List versions of Apollo Kotlin
- list-apollo-kotlin-normalized-cache-versions.sh - List versions of the Apollo Kotlin Normalized Cache library
Key Rules
- Prefer Apollo Kotlin v5+. Do not use v3 or older versions.
- Keep schema and operations in source control to make builds reproducible.
More skills from the skills repository
View all 14 skillsapollo-client
build React apps with Apollo Client
Apr 6Apollo GraphQLFrontendGraphQLReactapollo-connectors
integrate REST APIs with Apollo Connectors
Apr 6API DevelopmentApollo GraphQLGraphQLREST APIapollo-federation
author Apollo Federation subgraph schemas
Apr 6API DevelopmentApollo GraphQLArchitectureGraphQLapollo-ios
build Apple apps with Apollo iOS
Apr 29Apollo GraphQLGraphQLiOSMobile +2apollo-mcp-server
connect MCP agents to GraphQL APIs
Apr 6API DevelopmentApollo GraphQLGraphQLMCPapollo-router
configure Apollo Router for GraphQL federation
Apr 6Apollo GraphQLArchitectureDeploymentGraphQL
More from Apollo GraphQL
View publisherapollo-router-plugin-creator
write Apollo Router Rust plugins
skills
Apr 6Apollo GraphQLGraphQLPlugin DevelopmentRustapollo-server
build GraphQL servers with Apollo Server
skills
Apr 6API DevelopmentApollo GraphQLGraphQLNode.js +1graphql-operations
write GraphQL queries and mutations
skills
Apr 6API DevelopmentApollo GraphQLGraphQLgraphql-schema
design GraphQL schemas
skills
Apr 6API DevelopmentApollo GraphQLArchitectureGraphQLrover
manage GraphQL schemas with Apollo Rover
skills
Apr 6Apollo GraphQLCLIGraphQL