Skip to content

Latest commit

 

History

History
14 lines (9 loc) · 647 Bytes

README.md

File metadata and controls

14 lines (9 loc) · 647 Bytes

Apollo Client + TypeScript minimal example

Minimal example showcasing type-safe access to authenticated GitHub GraphQL API via Apollo Client 2.0 & apollo-codegen. ✨

image

Post on Medium.

How to run

  1. yarn
  2. Enter your GitHub personal access token to the .env file.
  3. yarn generate-schema – you can inspect schema.ts after it finishes
  4. yarn start