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
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -309,7 +309,7 @@ The schema is used by Apollo’s code generation tool to generate API code that
309
309
1. Navigate to your API on the [AWS AppSync console](https://console.aws.amazon.com/appsync/home)
310
310
2. On the left side, select Schema
311
311
3. When viewing your schema, there should a “Export schema” drop down. Select this and download the `schema.json` file.
312
-
4. Add this file to your project as directed by [Apollo Code Generation documentation](https://www.apollographql.com/docs/ios/code-generation/introduction)
312
+
4. Add this file to your project as directed by [Apollo Code Generation documentation](https://www.apollographql.com/docs/ios/code-generation/introduction).
313
313
314
314
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.
315
315
@@ -322,6 +322,13 @@ You can alternatively download the introspection schema using the [`fetch-schema
322
322
4. Add this file to your project as directed by [Apollo documentation](https://www.apollographql.com/docs/kotlin/advanced/plugin-recipes#specifying-the-schema-location)
323
323
</InlineFilter>
324
324
325
+
### Performing Queries, Mutations, and Subscriptions with Apollo client
326
+
327
+
1. Navigate to the **Queries** tab in your API on the [AWS AppSync console](https://console.aws.amazon.com/appsync/home). Here, you can test queries, mutations, and subscriptions in the GraphQL playground.
328
+
2. Enter your GraphQL operation (query, mutation, or subscription) in the editor and click **Run** to execute it.
329
+
3. Observe the request and response structure in the results. This gives you insight into the exact call patterns and structure that Apollo will use.
330
+
4. Copy the GraphQL operation from the playground and pass it to Apollo's code generation tool to automatically generate the corresponding API code for your project.
331
+
325
332
## Connecting to AWS AppSync real-time endpoint
326
333
327
334
The following example shows how you can create an Apollo client that allows performing GraphQL subscription operations with AWS AppSync.
0 commit comments