apollo-kotlin

Configure Apollo Kotlin for GraphQL clients in Gradle projects.

Updated Jan 21, 2026
One-click install
npx skills add https://github.com/HsnSaboor/open-engineer --skill apollo-kotlin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: apollo-kotlin
Source: https://github.com/HsnSaboor/open-engineer/tree/main/src/skills/bundled/apollo-kotlin
Command: npx skills add https://github.com/HsnSaboor/open-engineer --skill apollo-kotlin

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the process of integrating and utilizing Apollo Kotlin for GraphQL client development in various Kotlin projects.

Core Features & Use Cases

  • Project Setup: Guides through configuring Apollo Kotlin in Gradle for Android, JVM, or KMP.
  • Schema & Codegen: Assists with schema download and code generation.
  • Client Configuration: Helps set up ApolloClient with authentication, interceptors, and caching.
  • Operation Implementation: Supports writing and executing GraphQL queries, mutations, and subscriptions.
  • Use Case: You are starting a new Kotlin Multiplatform Mobile (KMP) project and need to connect to a GraphQL API using Apollo Kotlin. This skill will guide you through setting up Gradle, configuring the client, and writing your first query.

Quick Start

Use the apollo-kotlin skill to set up Apollo Kotlin in a Gradle project for an Android application.

Frequently Asked Questions about apollo-kotlin

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up Apollo Kotlin for GraphQL in a Kotlin Multiplatform project?

To set up Apollo Kotlin for GraphQL, configure the library in your Gradle build files. This skill guides you through adding the necessary plugins and dependencies for Android, JVM, or Kotlin Multiplatform projects.

How do I download a GraphQL schema and generate code with Apollo Kotlin?

Apollo Kotlin facilitates schema download and code generation through its Gradle configuration. You can use the provided scripts and references to automatically generate type-safe Kotlin models from your GraphQL schema.

Can I use Apollo Kotlin with Kotlin Multiplatform Mobile (KMP)?

Yes, Apollo Kotlin fully supports Kotlin Multiplatform Mobile (KMP) projects. It allows you to share GraphQL client logic across Android and iOS, requiring Gradle 8+ and Kotlin 1.9+ for proper integration.

How do I configure authentication and caching for an ApolloClient in Kotlin?

Configuring ApolloClient with authentication and caching involves setting up interceptors and cache configurations in your Kotlin code. This skill provides references for implementing these features during client initialization.

What's the best way to implement GraphQL queries and mutations in Android using Kotlin?

The best way to implement GraphQL queries and mutations in Android is using Apollo Kotlin's generated models. This skill supports writing and executing operations by leveraging type-safe code generated directly from your GraphQL schema.

Do I need Gradle 8 and Kotlin 1.9 to use Apollo Kotlin?

Yes, Apollo Kotlin requires Gradle 8+ and Kotlin 1.9+ for compatibility. These versions ensure proper code generation, client setup, and support across Android, JVM, and Kotlin Multiplatform environments.