GraphQL Tutorial for Server-Side Swift with Vapor: Getting Started

For a long time, solving the problem of API integrations between frontend and server-side seemed trivial. You might have stumbled across some HTML form encoding or legacy APIs that relied on SOAP and XML, but most APIs used REST with JSON encoding. While REST looked like the de-facto standard, ironically, it didn’t have a defined […] By Max Desiatov.

Leave a rating/review
Download materials
Save for later
Share
You are currently viewing page 4 of 4 of this article. Click here to view the first page.

Where to Go From Here?

To compare your results with the final project, click Download Materials at the bottom or the top of this page.

Great, you’ve finished this introduction to GraphQL using Server Side Swift. In this article you’ve learnt the following:

  • How GraphQL differs from other technologies such as pure REST implementations.
  • Define Fields, Queries and Mutations in GraphQL.
  • Learnt how to create, update and delete entities within your model.
  • Exploring the GraphQL API.
  • Use pagination to retrieve multiple pages of results

If you’d like to build an iOS app that uses this GraphQL API, check out the Apollo iOS library and GraphQL Using the Apollo Framework. If you’re working on a web frontend app, the Apollo Client library for JavaScript and TypeScript is a great option. For a deeper dive into the GraphQL ecosystem, I highly recommend the GraphQL Foundation website.

If you have any questions or feedback, please feel free to join the forum discussion below!

Max Desiatov

Contributors

Max Desiatov

Author

Kenny Dubroff

Tech Editor

Julia Zinchenko

Illustrator

Darren Ferguson

Final Pass Editor

Tim Condon

Team Lead

Over 300 content creators. Join our team.