Skip to content

Commit 14d3be9

Browse files
lawmichajosefaidt
andauthored
Apply suggestions from code review
Co-authored-by: josef <[email protected]>
1 parent dc51c9f commit 14d3be9

File tree

1 file changed

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

1 file changed

+7
-14
lines changed

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

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,7 @@ export const meta = {
66
'AWS AppSync Apollo Extensions',
77
platforms: [
88
'android',
9-
'angular',
10-
'flutter',
11-
'javascript',
12-
'nextjs',
13-
'react',
14-
'react-native',
159
'swift',
16-
'vue'
1710
]
1811
};
1912

@@ -66,7 +59,7 @@ Enter its GitHub URL (`https://github.com/aws-amplify/aws-appsync-apollo-extensi
6659

6760
### Connecting to AWS AppSync with Apollo client
6861

69-
AWS AppSync supports the following authorization modes (https://docs.aws.amazon.com/appsync/latest/devguide/security-authz.html)
62+
AWS AppSync supports the following [authorization modes](https://docs.aws.amazon.com/appsync/latest/devguide/security-authz.html)
7063

7164
#### API_KEY
7265

@@ -141,7 +134,7 @@ You can provide your own custom `fetchLatestAuthToken` provider for **AWS_LAMBDA
141134

142135
If you are using Amplify Auth, you can use the following method for AWS_IAM auth
143136

144-
```
137+
```swift
145138
import AWSCognitoAuthPlugin
146139
import AWSAppSyncApolloExtensions
147140

@@ -156,7 +149,7 @@ let authorizer = IAMAuthorizer(
156149

157150
If you are using Amplify Auth, you can use the following method for AWS_IAM auth
158151

159-
```
152+
```kotlin
160153
val authorizer = IamAuthorizer { ApolloAmplifyConnector.signAppSyncRequest(it, "us-east-1") }
161154
```
162155

@@ -166,7 +159,7 @@ val authorizer = IamAuthorizer { ApolloAmplifyConnector.signAppSyncRequest(it, "
166159

167160
Before you begin, you will need an Amplify Data backend deploy. To get started, see [Set up Data](/[platform]/swift/build-a-backend/data/set-up-data/).
168161

169-
Once you have deployed your backend and created the `amplify_outputs.json`, you can use Amplify library to read and retrieve your configuration values with the following steps:
162+
Once you have deployed your backend and created the `amplify_outputs.json` file, you can use Amplify library to read and retrieve your configuration values with the following steps:
170163

171164
<InlineFilter filters={["swift"]}>
172165

@@ -221,14 +214,14 @@ If you define multiple authorization strategies on a single model, you will have
221214
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:
222215

223216
<InlineFilter filters={["swift"]}>
224-
1. Navigate to your API on the AWS AppSync console
217+
1. Navigate to your API on the [AWS AppSync console](https://console.aws.amazon.com/appsync/home)
225218
2. On the left side, select Schema
226219
3. When viewing your schema, there should a “Export schema” drop down. Select this and download the `schema.json` file.
227220
4. Add this file to your project as directed by [Apollo Code Generation documentation](https://www.apollographql.com/docs/ios/code-generation/introduction)
228221
</InlineFilter>
229222

230223
<InlineFilter filters={["android"]}>
231-
1. Navigate to your API on the AWS AppSync console
224+
1. Navigate to your API on the [AWS AppSync console](https://console.aws.amazon.com/appsync/home)
232225
2. On the left side, select Schema
233226
3. When viewing your schema, there should a “Export schema” drop down. Select this and download the `schema.json` file.
234227
4. Add this file to your project as directed by [Apollo Code Generation documentation](https://www.apollographql.com/docs/ios/code-generation/introduction)
@@ -240,7 +233,7 @@ The following example shows how you can create an Apollo client that allows perf
240233

241234
<InlineFilter filters={["swift"]}>
242235

243-
```
236+
```swift
244237
import Apollo
245238
import ApolloAPI
246239
import ApolloWebSocket

0 commit comments

Comments
 (0)