BoD / ApolloKotlinPaginationSample

Apollo Kotlin pagination sample

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Apollo Kotlin pagination sample

A simple example of how to implement pagination with Apollo Kotlin and the normalized cache.

Uses the GitHub GraphQL API to fetch a list of repositories for a given user.

"Manual" way

In the main branch is the "manual" way of doing it, where you update the cache via the ApolloStore API.

The gist of it is here.

Incubating pagination support way

The incubating-pagination branch shows how to use the incubating pagination support.

You can see a the diff here.

Setup

To run the app, first get a GitHub token from https://github.com/settings/tokens and update githubOauthKey in gradle.properties.

About

Apollo Kotlin pagination sample


Languages

Language:Kotlin 100.0%