Based on article and tutorial source code:
GraphQL Using the Apollo Framework: Getting Started
Morphed by Rudi Farkas @rudifa from tutorial code to work with server olange/arcade/engine
.
Key Apollo/GraphQL steps:
- edit
Queries.graphql
to define the schema - add the shell script that generates API.swift
- use methods of the generated
GraphQLQuery
subclass to interact with an Apollo server from olange/arcade/engine.