Skip to content

Commit e6f1bfe

Browse files
committed
formatting
1 parent 38393d2 commit e6f1bfe

File tree

1 file changed

+5
-5
lines changed
  • src/pages/[platform]/build-a-backend/data/aws-appsync-apollo-extensions

1 file changed

+5
-5
lines changed

Diff for: src/pages/[platform]/build-a-backend/data/aws-appsync-apollo-extensions/index.mdx

+5-5
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ val authorizer = IamAuthorizer { signRequestAndReturnHeaders(it) }
291291
<InlineFilter filters={["swift"]}>
292292
AWS AppSync supports the following [authorization modes](https://docs.aws.amazon.com/appsync/latest/devguide/security-authz.html):
293293

294-
#### API_KEY
294+
### API_KEY
295295

296296
```swift
297297
import AWSAppSyncApolloExtensions
@@ -300,7 +300,7 @@ let authorizer = APIKeyAuthorizer(apiKey: "[API_KEY]")
300300
let interceptor = AppSyncInterceptor(authorizer)
301301
```
302302

303-
#### AMAZON_COGNITO_USER_POOLS
303+
### AMAZON_COGNITO_USER_POOLS
304304

305305
If you are using Amplify Auth, you can create a method that retrieves the Cognito access token
306306

@@ -330,7 +330,7 @@ let authorizer = AuthTokenAuthorizer(fetchLatestAuthToken: getUserPoolAccessToke
330330
let interceptor = AppSyncInterceptor(authorizer)
331331
```
332332

333-
#### AWS_IAM
333+
### AWS_IAM
334334

335335
If you are using Amplify Auth, you can use the following method for AWS_IAM auth
336336

@@ -426,11 +426,11 @@ You can alternatively download the introspection schema using the [`fetch-schema
426426
<BlockSwitcher>
427427

428428
<Block name="With Amplify">
429-
#### Amplify provided .graphql files
429+
**Amplify provided .graphql files**
430430
1. Within your Amplify Gen2 backend, run: `npx ampx generate graphql-client-code --format graphql-codegen --statement-target graphql --out graphql`
431431
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)
432432

433-
#### Manual
433+
**Manual**
434434
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.
435435
2. Enter your GraphQL operation (query, mutation, or subscription) in the editor and select **Run** to execute it.
436436
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

Comments
 (0)