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
AWS AppSync supports the following [authorization modes](https://docs.aws.amazon.com/appsync/latest/devguide/security-authz.html):
293
293
294
-
####API_KEY
294
+
### API_KEY
295
295
296
296
```swift
297
297
importAWSAppSyncApolloExtensions
@@ -300,7 +300,7 @@ let authorizer = APIKeyAuthorizer(apiKey: "[API_KEY]")
300
300
let interceptor =AppSyncInterceptor(authorizer)
301
301
```
302
302
303
-
####AMAZON_COGNITO_USER_POOLS
303
+
### AMAZON_COGNITO_USER_POOLS
304
304
305
305
If you are using Amplify Auth, you can create a method that retrieves the Cognito access token
306
306
@@ -330,7 +330,7 @@ let authorizer = AuthTokenAuthorizer(fetchLatestAuthToken: getUserPoolAccessToke
330
330
let interceptor =AppSyncInterceptor(authorizer)
331
331
```
332
332
333
-
####AWS_IAM
333
+
### AWS_IAM
334
334
335
335
If you are using Amplify Auth, you can use the following method for AWS_IAM auth
336
336
@@ -426,11 +426,11 @@ You can alternatively download the introspection schema using the [`fetch-schema
426
426
<BlockSwitcher>
427
427
428
428
<Blockname="With Amplify">
429
-
#### Amplify provided .graphql files
429
+
**Amplify provided .graphql files**
430
430
1. Within your Amplify Gen2 backend, run: `npx ampx generate graphql-client-code --format graphql-codegen --statement-target graphql --out graphql`
431
431
2. Copy the generated files (`mutations.graphql`, `queries.graphql`, `subscriptions.graphql`) to your `{app}/src/main/graphql` folder as shown in the [Apollo documentation](https://www.apollographql.com/docs/kotlin#getting-started)
432
432
433
-
#### Manual
433
+
**Manual**
434
434
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.
435
435
2. Enter your GraphQL operation (query, mutation, or subscription) in the editor and select **Run** to execute it.
436
436
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.
0 commit comments