w3resource

Tutorial: Introduction


Welcome! This tutorial demonstrates adding the Apollo iOS SDK to an app to communicate with a GraphQL server. It was prepared with the following tools:

  1. Xcode 11.4
  2. Swift 5.2
  3. Apollo iOS SDK 0.25.0

The tutorial assumes that you're using a Mac with Xcode installed. It also assumes some prior experience with iOS development.

If you encounter any issues during the tutorial, feel free to ask questions by either opening an issue on our GitHub repo or stopping by our Spectrum Chat for help.

What are you building?

This tutorial takes you through building an app to "book a seat" on any of the rockets that have been sent into space by SpaceX. Along the way, you'll build out functionality that uses the following features of the Apollo iOS SDK:

  • Schema downloading
  • Code generation
  • Queries and mutations
  • Error handling

A pre-built GraphQL server is provided for your app to execute operations against.

A repository with the resulting app will be kept up to date with new chapters and sections to the tutorial at https://github.com/apollographql/iOSTutorial.

Ready to start?

Wow don't be in a haste, as we start in the very next tutorial.

Previous: Performing mutations
Next: Using fragments



Become a Patron!

Follow us on Facebook and Twitter for latest update.

It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.

https://www.w3resource.com/apollo-graphql/tutorial-introduction.php