You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/pages/[platform]/build-a-backend/data/aws-appsync-apollo-extensions/index.mdx
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -211,13 +211,16 @@ If you define multiple authorization strategies on a single model, you will have
211
211
212
212
### Downloading the AWS AppSync schema
213
213
214
-
The schema is used by Apollo’s code generation tool to generate API code that helps you execute GraphQL operations. To retrieve your AWS AppSync schema:
214
+
The schema is used by Apollo’s code generation tool to generate API code that helps you execute GraphQL operations. The following steps integrate your AppSync schema with Apollo's code generation process:
215
215
216
216
<InlineFilterfilters={["swift"]}>
217
217
1. Navigate to your API on the [AWS AppSync console](https://console.aws.amazon.com/appsync/home)
218
218
2. On the left side, select Schema
219
219
3. When viewing your schema, there should a “Export schema” drop down. Select this and download the `schema.json` file.
220
220
4. Add this file to your project as directed by [Apollo Code Generation documentation](https://www.apollographql.com/docs/ios/code-generation/introduction)
221
+
222
+
You can alternatively download the introspection schema using the [`fetch-schema`](https://www.apollographql.com/docs/ios/code-generation/codegen-cli#fetch-schema) command with the `amplify-ios-cli` tool.
0 commit comments