Skip to content
This repository was archived by the owner on Jan 16, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
a8a35ae
Attempted fix for integration test failing on CI (#2024)
AnthonyMDev Nov 9, 2021
ece5b5b
fix(deps): update dependency gatsby-theme-apollo-docs to v5.3.6 (#2026)
renovate[bot] Nov 10, 2021
55c5db8
Update apollo-tooling to v2.33.9 (#2028)
calvincestari Nov 12, 2021
8d48031
Gateway clarification based on license change
hwillson Nov 12, 2021
46957a3
Update SQLite.swift to version 13.0 (#2015)
Iron-Ham Nov 17, 2021
d93568f
Release `0.50.0` (#2031)
calvincestari Nov 17, 2021
3262cd0
fix(deps): update dependency gatsby-theme-apollo-docs to v5.3.8 (#2038)
renovate[bot] Nov 18, 2021
f1707b4
Update caching.mdx (#2042)
bogdanbeczkowski Nov 24, 2021
c3687d2
Update ROADMAP.md (#2053)
calvincestari Dec 7, 2021
f192578
Clean up Github API for performance tests
AnthonyMDev Dec 13, 2021
c3969d1
fix(deps): update dependency gatsby-theme-apollo-docs to v5.3.9 (#2062)
renovate[bot] Dec 13, 2021
dbd7b87
Make filesystem diagram a bit easier to understand (#2063)
designatednerd Dec 14, 2021
67d86ae
Allow periods in arguments to be ignored when parsing cacheKeys (#2057)
Iron-Ham Dec 15, 2021
5079b14
fix(deps): update dependency gatsby-theme-apollo-docs to v5.3.11 (#2068)
renovate[bot] Dec 16, 2021
4d8b5bb
fix(deps): update dependency gatsby-theme-apollo-docs to v5.3.12 (#2074)
renovate[bot] Dec 17, 2021
95ee510
Add tutorial on subscriptions to match Android (#2072)
designatednerd Dec 20, 2021
0358975
Bump mermaid from 8.13.6 to 8.13.8 in /docs (#2083)
dependabot[bot] Jan 6, 2022
d46bd37
chore(deps): update dependency engine.io to 4.1.2 [security] (#2094)
renovate[bot] Jan 13, 2022
60ecd70
chore(deps): update dependency follow-redirects to 1.14.7 [security] …
renovate[bot] Jan 13, 2022
d44820d
chore(deps): update dependency node-forge to 1.0.0 [security] (#2095)
renovate[bot] Jan 13, 2022
fbeee46
Add note about acceptable extensions for types of schema file. (#2059)
designatednerd Jan 19, 2022
a4e7b4f
Docs: Bump to Gatsby v3 (#2104)
jgarrow Jan 25, 2022
0c9aa54
fix(deps): pin dependency gatsby-theme-apollo-docs to 6.0.0 (#2113)
renovate[bot] Jan 26, 2022
161873b
fix(deps): pin dependency gatsby to 3.14.6 (#2123)
renovate[bot] Jan 29, 2022
63eacd1
Edits to intro and installation docs (#2125)
Feb 1, 2022
eb6cbe1
Fix tutorial URL and tweak downloading a schema article (#2133)
Feb 3, 2022
7538bef
Split advanced "Creating a client" content into separate article (#2143)
Feb 7, 2022
ca88016
Disable flaky integration test
AnthonyMDev Feb 8, 2022
f51e7c4
Update gatsby config to deploy 1.0 alpha docs
AnthonyMDev Feb 8, 2022
ec034e8
Update roadmap after 1.0.0-alpha.1 release (#2145)
calvincestari Feb 9, 2022
0beea3d
[v1.0.0 Alpha 1] JavascriptError @unchecked Sendable (#2147)
TizianoCoroneo Feb 11, 2022
bf4cb5a
Update documentation to clarify schema download format and filename (…
calvincestari Feb 14, 2022
3c58987
chore(deps): update dependency follow-redirects to 1.14.8 [security] …
renovate[bot] Feb 14, 2022
f409e81
Update license copyright notice
calvincestari Feb 15, 2022
cf713c1
Delete Jazzy config - not supported
calvincestari Feb 16, 2022
c188637
Update list of active maintainers
calvincestari Feb 16, 2022
2b607ec
[Fix #2170] Do not refetch query watcher from server after cache miss…
AnthonyMDev Feb 25, 2022
bf86e01
Add `graphql-ws` protocol support (#2168)
calvincestari Feb 25, 2022
8b6a50a
chore(deps): update dependency prismjs to 1.27.0 [security] (#2179)
renovate[bot] Feb 28, 2022
cb5f1ce
Release 0.51.0 (#2086)
calvincestari Feb 28, 2022
664c1f1
Enable lazy access to the request body creation for leverage in custo…
rickfast Mar 3, 2022
52bbeac
Release `0.51.1` (#2188)
calvincestari Mar 7, 2022
6aee64a
Updates for new docs infra (#2197)
trevorblades Mar 15, 2022
f916c5f
Remove files from old Gatsby docs theme (#2202)
jgarrow Mar 15, 2022
62f4554
Clear body on APQ retry in JSONRequest (#2206)
AnthonyMDev Mar 18, 2022
729fedb
Release 0.51.2 (#2207)
AnthonyMDev Mar 18, 2022
08a41ba
Fix changelog version.
AnthonyMDev Mar 18, 2022
fecf44b
Add netlify config for deploy previews (#2208)
trevorblades Mar 22, 2022
b25d1de
Add codegen option for excludes (#2205)
bannzai Mar 23, 2022
a5f6f5d
Fix typo (#2212)
changm4n Mar 23, 2022
b4f58e2
Start a docs production deploy when docs changes get merged (#2211)
trevorblades Mar 23, 2022
4772297
Bump minimist from 1.2.5 to 1.2.6 in /SimpleUploadServer (#2214)
dependabot[bot] Mar 23, 2022
79876e5
Bump node-fetch from 2.6.6 to 2.6.7 in /SimpleUploadServer (#2215)
dependabot[bot] Mar 23, 2022
a563c40
Add note to tutorial about the `graphql-ws` subscription library (#2219)
rkoron007 Mar 25, 2022
c8c3951
Update tutorial-obtain-schema.md (#2225)
Carrione Mar 29, 2022
26351b5
Update tutorial-execute-query.md (#2228)
Carrione Mar 29, 2022
ab160e4
chore: Update Xcode build tool versions on CircleCI (#2242)
calvincestari Apr 8, 2022
57f329d
chore: Update roadmap
calvincestari Apr 15, 2022
b9a6116
fix: Sandbox documentation links (#2254)
martinbonnin Apr 21, 2022
09003c7
ci: Update xcode image to fix Node version mismatch
calvincestari Apr 21, 2022
fc260c7
ci: Update Node version to match what is installed with Xcode 13.3.1 …
calvincestari Apr 21, 2022
90d2c34
chore: updates roadmap (#2258)
jpvajda Apr 27, 2022
51c686f
Update build phases example to propagate errors to Xcode (#2260)
adam-zethraeus May 3, 2022
eecef09
Add a comment about a new use of the X-APOLLO-OPERATION-NAME header (…
glasser May 5, 2022
c78e0b1
Set permissions for GitHub actions (#2248)
neilnaveen May 16, 2022
858c769
updates roadmap for june 2022 (#2295)
jpvajda Jun 6, 2022
51c81bd
Update CircleCI tool versions (#2304)
calvincestari Jun 8, 2022
402dd16
fix: `graphql_transport_ws` protocol should send 'complete' to end su…
calvincestari Jun 17, 2022
c0a8ce3
Replace print statement with CodegenLogger.log (#2348)
hiltonc Jun 29, 2022
d26751a
Fix buttons on docs root (#2369)
Jul 12, 2022
f214c8e
Expose GraphQLResultError Path String (#2361)
Jul 12, 2022
414cc63
Revert "Fix buttons on docs root (#2369)" (#2371)
trevorblades Jul 12, 2022
0c43e49
release: 0.52.0 (#2370)
calvincestari Jul 14, 2022
bfa089b
Fix typo (#2379)
mischa-hildebrand Jul 18, 2022
b2ed705
Fix incorrect parameter name (#2380)
mischa-hildebrand Jul 18, 2022
135acc4
chore: Update ROADMAP for Beta release cycle (#2393)
calvincestari Jul 25, 2022
928f9ea
Remove all instances of bitcode as not supported in Xcode 14 (#2398)
stareque-atlassian Jul 28, 2022
42646f7
Release 0.53.0 (#2406)
calvincestari Jul 29, 2022
5f31e2a
fix: checkout at tag with legacy optionals behavior (#2412)
calvincestari Aug 2, 2022
323ed07
Update version in Swift Scripting docs (#2416)
redryerye Aug 3, 2022
ddc8953
Re-added support for iOS 11
adamayoung Aug 18, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Edits to intro and installation docs (apollographql#2125)
* Edits to intro and installation docs

* Fix broken links

* Edits from @designatednerd plus new screenshots
  • Loading branch information
Stephen Barlow authored Feb 1, 2022
commit 63eacd1fc5ac711b25d39ac0164ce1df7d7426de
24 changes: 13 additions & 11 deletions docs/shared/carthage-installation-panel.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,43 +11,45 @@ import {

<h4>Set up your `Cartfile`</h4>

Add `github "apollographql/apollo-ios"` to your Cartfile.
Add `github "apollographql/apollo-ios"` to your Cartfile.

</ExpansionPanelListItem>
<ExpansionPanelListItem number="2">

<h4>Checkout and build dependencies</h4>
<h4>Check out and build dependencies</h4>

Run `carthage update --platform ios` (or `--platform ios,macos` to build both Mac and iOS). **NOTE:** There's an issue with the way Carthage uses Lipo in the Xcode 12 GM, please cd into `[YourProject]/Carthage/Checkouts/apollo-ios/scripts` and then run `./carthage-build-workaround.sh` to actually get Carthage builds that work.
Run `carthage update --use-xcframeworks --platform ios` (or `--platform ios,macos` to build both Mac and iOS).

> **Note:** There's an issue with the way Carthage uses Lipo in the Xcode 12 GM. Please `cd` into `[YourProject]/Carthage/Checkouts/apollo-ios/scripts` and then run `./carthage-build-workaround.sh` to resolve this build issue.

</ExpansionPanelListItem>
<ExpansionPanelListItem number="3">
<ExpansionPanelListItem number="3">

<h4>Add built frameworks to your project</h4>

Drag and drop `Apollo.framework` from the appropriate `Carthage/Build/iOS` or `Carthage/Build/Mac` folder to the **Embedded Binaries** section of your application target's **General** settings tab. This should also cause them to appear in the **Linked Frameworks And Libraries** section automatically.
- If you also plan on using the `ApolloSQLite` library, also drag `ApolloSQLite.framework` and `SQLite.framework` to this area as well.
- If you also plan on using the `ApolloWebSocket` library, also drag `ApolloWebSocket.framework` and `Starscream.framework` to this area as well.
- To include the `ApolloSQLite` library, also drag `ApolloSQLite.framework` and `SQLite.framework` to this area.
- To include the `ApolloWebSocket` library, also drag `ApolloWebSocket.framework` and `Starscream.framework` to this area.

</ExpansionPanelListItem>
<ExpansionPanelListItem number="4">

<h4>Work around Carthage submission bug</h4>

On your application target's **Build Phases** settings tab, click the **+** icon and choose **New Run Script Phase**. Create a Run Script in which you specify your shell (ex: `bin/sh`), add the following contents to the script area below the shell:
On your application target's **Build Phases** settings tab, click the **+** icon and choose **New Run Script Phase**. Create a Run Script in which you specify your shell (e.g., `bin/sh`) and add the following contents to the script area below the shell:

```sh
/usr/local/bin/carthage copy-frameworks
```

and add the paths to the frameworks you want to use under **Input Files**, e.g.:
Then, add the paths to the frameworks you want to use under **Input Files**, e.g.:

```
$(SRCROOT)/Carthage/Build/iOS/Apollo.framework
```
Again, if you're adding `ApolloSQLite` or `ApolloWebSocket`, please make sure to add the other frameworks you added as Input Files.

Again, if you're adding `ApolloSQLite` or `ApolloWebSocket`, please make sure to add the other frameworks you added as Input Files.

This script works around an [App Store submission bug](http://www.openradar.me/radar?id=6409498411401216) triggered by universal binaries and ensures that necessary bitcode-related files and dSYMs are copied when archiving.

</ExpansionPanelListItem>
Expand Down
10 changes: 4 additions & 6 deletions docs/shared/carthage-run-script-panel.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@ import {

<ExpansionPanel title="Carthage Run Script">

In the never-ending battle of what's going to be more painful when it comes to dependency management, we've decided to make working with Carthage a bit more of a pain in order to make working with NPM way less of a pain.
The scripts and binaries that you need to generate code are included in the `Carthage/Checkouts` folder. If this folder is not checked into version control, all developers on a team (and your CI machine) need to run `carthage checkout` when changes are made to the version to ensure they have the correct underlying binaries and scripts.

The scripts and binaries which you need to generate code will be included in the `Carthage/Checkouts` folder. If this folder is not checked into version control, all developers on a team (and your CI machine) will need to run `carthage checkout` when changes are made to the version to ensure they have the correct underlying binaries and scripts.
Team members can then use this build script:

Once everyone's on the same page about that, you should be able to use this build script:

```sh
```bash
# Don't run this during index builds
if [ $ACTION = "indexbuild" ]; then exit 0; fi

Expand All @@ -21,4 +19,4 @@ cd "${SRCROOT}/${TARGET_NAME}"
"${SCRIPT_PATH}"/run-bundled-codegen.sh codegen:generate --target=swift --includes=./**/*.graphql --localSchemaFile="schema.json" API.swift
```

</ExpansionPanel>
</ExpansionPanel>
10 changes: 5 additions & 5 deletions docs/shared/pods-installation-panel.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import {
<ExpansionPanelList>
<ExpansionPanelListItem number="1">

<h4>Install CocoaPods</h4>
<h4>Install or update CocoaPods</h4>

Because Apollo iOS has been written using Swift 5, you need to use version `1.7.0` or higher. You can install CocoaPods using:
Because Apollo iOS uses Swift 5, you need to use CocoaPods version `1.7.0` or later. You can install CocoaPods with the following command:

```sh
gem install cocoapods
Expand All @@ -24,8 +24,8 @@ Because Apollo iOS has been written using Swift 5, you need to use version `1.7.

Add `pod "Apollo"` to your Podfile.

- If you also want to use the `ApolloSQLite` framework, also add `pod "Apollo/SQLite"`
- If you also want to use the `ApolloWebSocket` framework, also add `pod "Apollo/WebSocket"`
- To include the `ApolloSQLite` framework, also add `pod "Apollo/SQLite"`
- To include the `ApolloWebSocket` framework, also add `pod "Apollo/WebSocket"`

</ExpansionPanelListItem>
<ExpansionPanelListItem number="3">
Expand All @@ -43,4 +43,4 @@ Use the `.xcworkspace` file generated by CocoaPods to work on your project.
</ExpansionPanelListItem>
</ExpansionPanelList>

</ExpansionPanel>
</ExpansionPanel>
4 changes: 2 additions & 2 deletions docs/shared/pods-run-script-panel.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {

Our CocoaPods install includes the code-generation scripts and binaries of the `apollo` CLI client as files which will not be added to the framework, but which you can still call from a Run Script Build Phase. Add the following to the Run Script:

```sh
```bash
# Don't run this during index builds
if [ $ACTION = "indexbuild" ]; then exit 0; fi

Expand All @@ -17,4 +17,4 @@ cd "${SRCROOT}/${TARGET_NAME}"
"${SCRIPT_PATH}"/run-bundled-codegen.sh codegen:generate --target=swift --includes=./**/*.graphql --localSchemaFile="schema.json" API.swift
```

</ExpansionPanel>
</ExpansionPanel>
26 changes: 14 additions & 12 deletions docs/shared/spm-installation-panel.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,42 +6,44 @@ import {

<ExpansionPanel title="Swift Package Manager Installation">

**NOTE**: These instructions are intended for usage on Xcode 11 and higher. Xcode 11 is the first version of Xcode that integrates Swift Package manager and makes it _way_ easier to use than it was at the command line. If you are using older versions of Xcode, we recommend using CocoaPods.
> **Note:** These instructions use the Xcode 13 UI. Xcode 11 is the first version of Xcode that integrates Swift Package manager, whereas older versions require using the command line. If you're using an older version of Xcode, we recommend using CocoaPods instead.

<ExpansionPanelList>
<ExpansionPanelListItem number="1">

Go to **File > Swift Packages > Add Package Dependency...**
Go to **File > Add Packages...**

![add a dependency](../source/screenshot/spm_packages_add_dependency.png)
<img class="screenshot" src="../source/screenshot/spm_packages_add_package.jpg" alt="Adding an SPM package" width="300" />

</ExpansionPanelListItem>
<ExpansionPanelListItem number="2">

Paste the URL to the Apollo iOS repo on GitHub ([https://github.com/apollographql/apollo-ios.git](https://github.com/apollographql/apollo-ios.git)) into the search bar, then hit the **Next** button:
In the dialog that appears, paste the URL of the Apollo iOS GitHub repo (`https://github.com/apollographql/apollo-ios.git`) into the search bar, then select the `apollo-ios` package that appears:

![paste in the url](../source/screenshot/spm_paste_url.png)
<img class="screenshot" src="../source/screenshot/spm_packages_dialog.jpg" alt="Pasting the Apollo iOS GitHub URL" />

</ExpansionPanelListItem>
<ExpansionPanelListItem number="3">

Select what version you want to use, then hit next. Xcode will automatically suggest the current version `Up to Next Major`, we **strongly** suggest that while the iOS SDK is on a `0.x.x` version scheme, you select `Up To Next Minor` instead, as we will still be releasing breaking changes on minor versions:
Select which version you want to use ([see version history](https://github.com/apollographql/apollo-ios/releases)), then click **Add Package**. Note that Xcode might not automatically select the latest version number!

![select a version](../source/screenshot/spm_select_version.png)
> Xcode automatically suggests the dependency rule `Up to Next Major`. We **strongly** suggest that until the release of Apollo iOS `1.x`, you select `Up To Next Minor` instead, because we might release breaking changes in a minor version.

</ExpansionPanelListItem>
<ExpansionPanelListItem number="4">

Select which packages you want to use. If you're just getting started, try selecting just the main `Apollo` library first - you can always come back and add the other packages later if you need them. Then hit finish.

![select the packages you want to use](../source/screenshot/spm_select_package.png)
Select which packages you want to use. If you're getting started, we recommend selecting just the main `Apollo` library for now. You can always add other packages later if you need them.

_Note: Do **not** select the `Apollo-Dynamic` target, this is only for use for projects linking to our library dynamically. Most projects will not need to do this._
<img class="screenshot" src="../source/screenshot/spm_select_package.jpg" alt="Selecting Apollo iOS packages" />

> **Note:** Do **not** select the `Apollo-Dynamic` target. This target is only for projects that link to Apollo iOS. Most projects do not need to do this.

Then, click **Add Package**.

</ExpansionPanelListItem>
<ExpansionPanelListItem number="check">
You're done!
</ExpansionPanelListItem>
</ExpansionPanelList>

</ExpansionPanel>
</ExpansionPanel>
10 changes: 5 additions & 5 deletions docs/shared/spm-run-script-panel.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import {

<ExpansionPanel title="Swift Package Manager Run Script">

> **NOTE**: If your Derived Data is in a custom location, stop, go back, and use the [Swift Scripting](./swift-scripting) method instead. This script relies on Derived Data being in the default location. Swift Scripting doesn't rely on Derived Data at all.
> **Note:** If your Derived Data is in a custom location, go back and use the [Swift Scripting](./swift-scripting) method instead. This script relies on Derived Data being in the default location. Swift Scripting doesn't rely on Derived Data at all.

If you're using Xcode 11 or higher, SPM will check out the appropriate build script along with the rest of the files when it checks out the repo. Add the following to your Run Script build phase:
If you're using Xcode 11 or higher, SPM checks out the appropriate build script along with the rest of the files when it checks out the repo. Add the following to your Run Script build phase:

```sh
```bash
# Don't run this during index builds
if [ $ACTION = "indexbuild" ]; then exit 0; fi

Expand Down Expand Up @@ -38,6 +38,6 @@ cd "${SRCROOT}/${TARGET_NAME}"
"${SCRIPT_PATH}"/run-bundled-codegen.sh codegen:generate --target=swift --includes=./**/*.graphql --localSchemaFile="schema.json" API.swift
```

> NOTE: If you try to use this with command line SPM, when you regenerate your `xcodeproj` this build script will get wiped out. We strongly recommend using Xcode 11's built-in SPM handling rather than the command line because of this.
> **Note:** If you try to use this with command line SPM, when you regenerate your `xcodeproj` this build script will get wiped out. We strongly recommend using Xcode 11's built-in SPM handling instead of the command line because of this.

</ExpansionPanel>
</ExpansionPanel>
4 changes: 2 additions & 2 deletions docs/source/downloading-schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ Apollo iOS requires a GraphQL schema file as input to the code generation proces

You can use the [Apollo CLI](https://www.apollographql.com/docs/devtools/cli/) to download a GraphQL schema by sending an introspection query to the server.

If you've installed the CLI globally, you can use the following command to download your schema:
If you've installed the CLI globally, you can use the following command to download your schema:

```sh
apollo schema:download --endpoint=http://localhost:8080/graphql schema.json
```

Note that if you're using the local version set up for codegen, you'll want to use the same method you're using in the [Adding A Code Generation Build Step](installation#adding-a-code-generation-build-step) instructions to access that specific CLI. For example, if you're using CocoaPods, you can set it up like this to download your schema:
Note that if you're using the local version set up for codegen, you'll want to use the same method you're using in the [Add a code generation build step](/installation/#5-add-a-code-generation-build-step) instructions to access that specific CLI. For example, if you're using CocoaPods, you can set it up like this to download your schema:

```sh
SCRIPT_PATH="${PODS_ROOT}/Apollo/scripts"
Expand Down
49 changes: 31 additions & 18 deletions docs/source/index.mdx
Original file line number Diff line number Diff line change
@@ -1,35 +1,48 @@
---
title: Introduction
title: Introduction to Apollo iOS
sidebar_title: Introduction
description: A strongly-typed, caching GraphQL client for iOS, written in Swift
---

[Apollo iOS](https://github.com/apollographql/apollo-ios) is a strongly-typed, caching GraphQL client for native iOS apps written in Swift.
import { Button } from '@apollo/space-kit/Button';
import { Link } from 'gatsby';
import { colors } from 'gatsby-theme-apollo-core';

It allows you to execute queries and mutations against a GraphQL server and returns results as query-specific Swift types. This means you don't have to deal with parsing JSON, or passing around dictionaries and making clients cast values to the right type manually. You also don't have to write model types yourself, because these are generated from the GraphQL definitions your UI uses.
**Apollo iOS** is an [open-source](https://github.com/apollographql/apollo-ios) GraphQL client for native iOS apps, written in Swift. It enables you to execute queries and mutations against a GraphQL server and returns results as operation-specific Swift types.

As the generated types are query-specific, you're only able to access data you actually specify as part of a query. If you don't ask for a field in a particular query, you won't be able to access the corresponding property on the returned data structure.
<p>
<Button
color={colors.primary}
as={<Link to="/tutorial/tutorial-introduction/" />}
style={{marginRight: 16, marginBottom: 16}}
>
Start the tutorial
</Button>
<Button
as={<Link to="/installation/" />}
>
Installation
</Button>
</p>

In effect, this means you can now rely on the Swift type checker to make sure errors in data access show up at compile time. With our Xcode integration, you can conveniently work with your UI code and corresponding GraphQL definitions side by side, and it will even validate your query documents, and show errors inline.
## Benefits

Apollo iOS does more than simply run your queries against a GraphQL server, however. It normalizes query results to construct a client-side cache of your data, which is kept up to date as further queries and mutations are run. This means your UI is always internally consistent, and can be kept fully up-to-date with the state on the server with the minimum number of queries required.
### Strong typing with codegen

This combination of immutable models, one way data flow, and automatic consistency management, leads to a very powerful and elegant programming model that allows you to eliminate common glue code and greatly simplifies app development.
Thanks to strong typing in Apollo iOS, you don't need to deal with parsing JSON responses or passing around dictionaries of values that require manual casting. You also don't need to write model types yourself, because models are generated from the GraphQL operations your UI defines.

## Getting Started
Because generated types are operation-specific, they include properties _only_ for the GraphQL fields included in their corresponding operation. This means you can rely on the Swift type checker to flag data access errors at compile time.

We have a [detailed iOS tutorial](./tutorial/tutorial-introduction) walking you through how to build an app called [RocketResever](https://github.com/apollographql/iOSTutorial), which talks to the backend built in the [Fullstack Tutorial](https://www.apollographql.com/docs/tutorial/introduction/).
Apollo's Xcode integration enables you to work with your UI code and corresponding GraphQL definitions side by side. It even validates your query documents, showing errors inline.

If you have questions or would like to contribute, please join our community at [https://community.apollographql.com/](http://community.apollographql.com/new-topic?category=Help&tags=mobile,client).
### Normalized caching

## Related platforms
Apollo iOS normalizes operation results to build a client-side cache of your data, which is updated with every operation you execute. This means your UI is always internally consistent, and it can stay up to date with your backend with as few operation as possible.

[Apollo Android](https://github.com/apollographql/apollo-android) is a GraphQL client for native Android apps written in Java and Kotlin, and offers Kotlin Multi-Platform integration as well.
[Learn more about caching.](./caching/)

Apollo Client for JavaScript's [React integration](https://apollographql.com/docs/react) works with [React Native](https://facebook.github.io/react-native/) on both iOS and Android.
## Related libraries

## Other resources
[Apollo Kotlin](https://www.apollographql.com/docs/kotlin/) is a GraphQL client for native Android apps written in Java and Kotlin. It offers Kotlin Multi-Platform integration as well.

- [GraphQL.org](http://graphql.org) for an introduction and reference to the GraphQL itself, partially written and maintained by the Apollo team.
- [Our website](http://www.apollographql.com/) to learn about Apollo open-source and commercial tools.
- [Our blog](https://www.apollographql.com/blog/) for long-form articles about GraphQL, feature announcements for Apollo, and guest articles from the community.
- [Our Twitter](https://twitter.com/apollographql) for in-the-moment news.
Apollo Client for JavaScript's [React integration](https://apollographql.com/docs/react) works with [React Native](https://facebook.github.io/react-native/) on both iOS and Android.
Loading