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](https://aws.amazon.com/appsync/) is a fully managed service that makes it easy to develop GraphQL APIs by handling the heavy lifting of securely connecting to data sources like AWS DynamoDB, Lambda, and more.
6
6
7
7
You can use any HTTP or GraphQL client to connect to a GraphQL API on AppSync.
8
8
9
-
For front-end web and mobile development, we recommend using the [Amplify](https://aws-amplify.github.io/) clients which are optimized to connect to the AppSync backend.
9
+
For front-end web and mobile development, we recommend using the [AWS Amplify library](https://docs.amplify.aws/lib/graphqlapi/getting-started/q/platform/js/)which is optimized to connect to the AppSync backend.
10
10
11
-
- For DynamoDB data sources, use the DataStore category in the Amplify client. It provides the best developer experience and built-in conflict detection and resolution.
12
-
- For non-DynamoDB data sources in scenarios where you have no offline requirements, use the API (GraphQL) category in the Amplify client.
13
-
- For use cases where you are utilizing the Apollo V3 client, use the Apollo Links in this repository to help with authorization and subscriptions.
11
+
- For DynamoDB data sources where conflict detection and resolution are enabled on AppSync, use the [DataStore category in the Amplify library](https://docs.amplify.aws/lib/datastore/getting-started/q/platform/js/).
12
+
- For non-DynamoDB data sources in scenarios where you have no offline requirements, use the [API (GraphQL) category in the Amplify library](https://docs.amplify.aws/lib/graphqlapi/getting-started/q/platform/js/).
13
+
- If you want to use the Apollo V3 client, use the Apollo Links in this repository to help with authorization and subscriptions.
14
+
15
+
**Looking for the AWS AppSync SDK for JavaScript (built on Apollo v2)?** AWS AppSync SDK for JavaScript (V2) is now in Maintenance Mode until June 30th, 2024. This means that we will continue to include updates to ensure compatibility with backend services and security. No new features will be introduced in the AWS AppSync SDK for JavaScript (V2). Please review the [upgrade guide](https://docs.amplify.aws/lib/graphqlapi/upgrade-guide/q/platform/js) for recommended next steps.
14
16
15
17
## [AWS AppSync](https://aws.amazon.com/appsync/) Links for Apollo V3
16
18
@@ -26,86 +28,6 @@ If you would like to use the [Apollo JavaScript client version 3](https://www.ap
26
28
27
29
[Example usage of Apollo V3 links](#using-authorization-and-subscription-links-with-apollo-client-v3-no-offline-support)
The `aws-appsync` and `aws-appsync-react` packages work with the [Apollo client version 2](https://www.apollographql.com/docs/react/v2) and provide offline capabilities.
34
-
35
-
**Note:** if you do not have any offline requirements in your app, we recommend using the [Amplify libraries](https://aws-amplify.github.io/).
When using this library with React Native, you need to ensure you are using the correct version of the library based on your version of React Native. Take a look at the table below to determine what version to use.
61
-
62
-
|`aws-appsync` version | Required React Native Version |
If you are using React Native `0.60` and above, you also need to install `@react-native-community/netinfo` and `@react-native-community/async-storage`:
If you are using React Native `0.60+` for iOS, run the following command as an additional step:
80
-
81
-
```sh
82
-
npx pod-install
83
-
```
84
-
85
-
---
86
-
87
-
## Usage
88
-
89
-
Please visit the [documentation with the Amplify Framework](https://aws-amplify.github.io/docs/js/api) for detailed instructions.
90
-
91
-
-[React / React Native](#react--react-native)
92
-
-[Using Authorization and Subscription links with Apollo Client V3 (No offline support)](#using-authorization-and-subscription-links-with-apollo-client-v3-no-offline-support)
93
-
-[Queries and Subscriptions using Apollo V3](#queries-and-subscriptions-using-apollo-v3)
94
-
-[Creating a client (Apollo V2)](#creating-a-client-apollo-v2)
## [AWS AppSync](https://aws.amazon.com/appsync/) JavaScript SDK based on Apollo V2 (Maintenance mode)
188
+
189
+
The `aws-appsync` and `aws-appsync-react` packages work with the [Apollo client version 2](https://www.apollographql.com/docs/react/v2) and provide offline capabilities.
190
+
191
+
**Note:** if you do not have any offline requirements in your app, we recommend using the [Amplify libraries](https://aws-amplify.github.io/).
When using this library with React Native, you need to ensure you are using the correct version of the library based on your version of React Native. Take a look at the table below to determine what version to use.
217
+
218
+
|`aws-appsync` version | Required React Native Version |
If you are using React Native `0.60` and above, you also need to install `@react-native-community/netinfo` and `@react-native-community/async-storage`:
### Complex objects with AWS AppSync SDK for JavaScript (Maintenance mode)
580
559
581
560
Many times you might want to create logical objects that have more complex data, such as images or videos, as part of their structure. For example, you might create a Person type with a profile picture or a Post type that has an associated image. With AWS AppSync, you can model these as GraphQL types, referred to as complex objects. If any of your mutations have a variable with bucket, key, region, mimeType and localUri fields, the SDK uploads the file to Amazon S3 for you.
582
561
@@ -656,7 +635,7 @@ const client = new AWSAppSyncClient({
656
635
657
636
When you run the above mutation, a record will be in a DynamoDB table for your AppSync API as well as the corresponding file in an S3 bucket.
658
637
659
-
### Offline configuration (Apollo V2)
638
+
### Offline configuration with AWS AppSync SDK for JavaScript (Maintenance mode)
660
639
661
640
When using the AWS AppSync SDK offline capabilities (e.g. `disableOffline: false`), you can provide configurations for the following:
662
641
@@ -717,7 +696,7 @@ const client = new AWSAppSyncClient({
717
696
718
697
For detailed documentation about the offline helpers, look at the [API Definition](OFFLINE_HELPERS.md).
719
698
720
-
### Vue
699
+
### Vue sample with AWS AppSync SDK for JavaScript (Maintenance mode)
721
700
722
701
For more documentation on Vue Apollo click [here](https://github.com/Akryum/vue-apollo).
0 commit comments