Hey all! In this video, I call a remote GraphQL server using the Apollo framework. Great intro for iOS developers implementing GraphQL in their projects. We make use of GraphQL's language, CLI, and run scripts in the tutorial, so be ready! It's a bit involved to do this, but GraphQL is a really efficient tool if you're constantly calling APIs.
Here are the steps for making it happen:
1) Install Apollo using Swift Package Manager
2) Add syntax highlighting plug-ins (optional)
3) Use CLI to download remote schema.json
4) Create queries and migrations in .graphql files
5) Create API.swift file using run script
6) Add instance of Apollo to AppDelegate
7) Call Apollo methods in ViewController
Starter project: https://github.com/michaelmiles1/QL/t...
Finished project: https://github.com/michaelmiles1/QL/t...
Twitter: / milesoftweets
Instagram: / michaelmilestv
Swift Life Podcast: https://anchor.fm/michael-miles04