Skip to content

Commit

Permalink
Fix broken links
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Barlow committed Feb 1, 2022
1 parent d45e8eb commit 348ab83
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
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
14 changes: 7 additions & 7 deletions docs/source/tutorial/tutorial-obtain-schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ This tutorial uses a modified version of the GraphQL server you build as part of

<img src="images/sandbox_landing.png" alt="The Sandbox query explorer" class="screenshot"/>

You'll know that this Sandbox instance is pointed at our server because its URL, `https://apollo-fullstack-tutorial.herokuapp.com`, is in the box at the top left of the page. If Sandbox is properly connected, you'll see a green dot:
You'll know that this Sandbox instance is pointed at our server because its URL, `https://apollo-fullstack-tutorial.herokuapp.com`, is in the box at the top left of the page. If Sandbox is properly connected, you'll see a green dot:

<img src="images/sandbox_green_dot.png" alt="A closeup of the URL box with a dot indicating it's connected" class="screenshot"/>

The schema defines which GraphQL operations your server can execute. At the top left, click the schema icon to get an overview of your schema:
The schema defines which GraphQL operations your server can execute. At the top left, click the schema icon to get an overview of your schema:

<img src="images/schema_icon.png" alt="The schema icon to click" class="screenshot"/>

Expand All @@ -24,11 +24,11 @@ The Apollo iOS SDK needs a local copy of your server's schema to generate code f

To use the Apollo CLI from Xcode, add a **Run Script** build phase to your app:

1. Select the `xcodeproj` file in the Project Navigator, and then select the `RocketReserver` application target:
1. Select the `xcodeproj` file in the Project Navigator, and then select the `RocketReserver` application target:

<img src="images/select_target.png" alt="Selecting application target" class="screenshot"/>

2. A list of tabs appears. Select the **Build Phases** tab:
2. A list of tabs appears. Select the **Build Phases** tab:

<img src="images/build_phases.png" alt="Build phases menu item" class="screenshot"/>

Expand All @@ -37,7 +37,7 @@ To use the Apollo CLI from Xcode, add a **Run Script** build phase to your app:
<img src="images/new_run_script_phase.png" alt="Creating a new run script build phase" class="screenshot" width="300"/>

This adds a new Run Script build phase to the bottom of your list of build phases.

4. Drag the newly created phase up between "Dependencies" and "Compile Sources":

<img src="images/drag_run_script.png" alt="Where to drag the run script" class="screenshot"/>
Expand All @@ -46,7 +46,7 @@ To use the Apollo CLI from Xcode, add a **Run Script** build phase to your app:

<img src="images/rename_run_script.png" alt="UI for renaming" class="screenshot"/>

6. Expand the Apollo phase. Paste the **Swift Package Manager Run Script** from [Adding a code generation build step](/installation/#adding-a-code-generation-build-step) into the text area. This script uses your schema to generate the code that the Apollo iOS SDK uses to interact with your server.
6. Expand the Apollo phase. Paste the **Swift Package Manager Run Script** from [Add a code generation build step](/installation#5-add-a-code-generation-build-step) into the text area. This script uses your schema to generate the code that the Apollo iOS SDK uses to interact with your server.

7. Before the script can generate code, it needs a local copy of your GraphQL server's schema. For now, using a `#`, **comment out the last line** of the script you pasted and add the following line below it:

Expand All @@ -60,7 +60,7 @@ To use the Apollo CLI from Xcode, add a **Run Script** build phase to your app:
<img src="images/drag_schema_into_xcode.png" alt="Where to drag the schema file" class="screenshot" width="300"/>
When Xcode offers to add the schema file, make sure **all targets are unchecked** to reduce the size of your application bundle:
When Xcode offers to add the schema file, make sure **all targets are unchecked** to reduce the size of your application bundle:
<img src="images/dont_add_to_target.png" alt="All targets unchecked in dialog" class="screenshot"/>
Expand Down

0 comments on commit 348ab83

Please sign in to comment.