skills.vishalvoidskills/vishalvoid
Technical & DevelopmentIntermediate

apollo-kotlin

A GraphQL client for Android, JVM, and Kotlin Multiplatform projects

Developer Setup

Setup & Installation

bash
npx skills add https://github.com/apollographql/skills --skill apollo-kotlin

Overview

What This Skill Does

A GraphQL client for Android, JVM, and Kotlin Multiplatform projects

Application

When to use this Skill

Documentation

Show Skills.md file

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 ApolloClient with 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

Lines 1 - 25 of 31

Recommendations

Explore other random skills

All skillsMy patterns