In this video we talk about TypeScript and GraphQL, and how to automatically generate the response and variable types using the Apollo CLI tool.
---------- Course
Want to go deeper with Next.js? Join me in my Next Level Next.js course where over 29 videos and 8 hours of content we'll build a full application from start to finish. We use TypeScript, GraphQL, Prisma, Apollo, Mapbox, Firebase and lots more. https://next.leighhalliday.com/
---------- Links
Apollo CLI - https://www.apollographql.com/docs/devtools/cli/
Starting Code - https://github.com/leighhalliday/apollo-codegen-demo/tree/c58bae82d607afadefb60ab2ad2ba854b4ef9b2f
Source Code - https://github.com/leighhalliday/apollo-codegen-demo
---------- Connect
Join this channel - https://www.youtube.com/channel/UCWPY8W-FAZ2HdDiJp2RC_sQ/join
Join me on Discord - https://discord.gg/wcSNwfu
---------- Timeline
00:00 - Introduction
04:30 - Apollo CLI Codegen
09:55 - Apollo CLI Download Schema
11:00 - Apollo CLI Endpoint