DGS Framework + Apollo Automatic Persisted Queries

The key to solving Netflix/dgs-framework#905 is to add a dependency on Caffeine: implementation("com.github.ben-manes.caffeine:caffeine")

Usage

Start the DGS Framework server:

cd jvm-dgs
./gradlew bootRun

Or PowerShell:

cd jvm-dgs
.\gradlew.bat bootRun

Install Node dependencies:

yarn install --frozen-lockfile

Wait for it to start, then start the Node app:

node node-apollo-client/index.js

The second time there will only be one request as the query is cached.

Wireshark output

Expected program output