API (GraphQL) - React - AWS Amplify Gen 1 Documentation (original) (raw)

Introducing Amplify Gen 2

Amplify has re-imagined the way frontend developers build fullstack applications. Develop and deploy without the hassle.

Fullstack TypeScript

Write your app's data model, auth, storage, and functions in TypeScript; Amplify will do the rest.

Built with the AWS CDK

Use any cloud resource your app needs. Never worry about scale.

Learn more about Gen 2

Skip to main content

Was this page helpful?

Can you provide more details?

Page updated Apr 29, 2024

  1. Gen 1
  2. React
  3. Build & connect backend
  4. API (GraphQL)

Set up Amplify GraphQL APILearn more about how to get started with Amplify's API categoryConnect API to existing MySQL or PostgreSQL databaseLearn how to connect your API to an existing MySQL or PostgreSQL database.Connect your app code to the APILearn how to connect your app code to the API.Customize your data modelCustomize your data model with primary keys, secondary indexes, and model relationships.Customize authorization rulesAdd authorization rules to your GraphQL schema to control access to your data.Create, update, and delete application dataLearn more about how to create and update data using GraphQL APIs in Amplify.Read application dataLearn more about how to read data using Amplify's GraphQL API category.Subscribe to real-time eventsLearn more about how to observe data changes using subscriptions in Amplify.Set up custom queries and mutationsAdd authorization rules to your GraphQL schema to control access to your data.Build search and aggregate queriesAdd authorization rules to your GraphQL schema to control access to your data.Working with files / attachmentsLearn more about associating Amplify Storage files with Amplify GraphQL API records.Optimistic UILearn more about implementing optimistic UI with Amplify GraphQL API.Connect to data from server-side runtimesLearn more about how to call an AppSync GraphQL API from a NodeJS app or a Lambda functionJavaScript, Android, Swift, and Flutter client code generationAmplify's codegen capabilities generate native code for iOS and Android, as well as types for Flow and TypeScript. Codegen can also generate GraphQL statements (queries, mutations, and subscriptions).Incorporate machine learningAdd AI/ML capabilities such as text recognition, image labeling, text-to-speech, and translation to your GraphQL API.Evolving GraphQL schemasEvolve your GraphQL schema over time using the @mapsTo directive to retain tables while renaming modelsModify Amplify-generated resourcesLearn more about how to modify Amplify-generated resources for Amplify GraphQL APIs. This allows you to modify underlying AppSync, DynamoDB, Lambda, and OpenSearch resources.Upgrade from AppSync SDKLearn how to upgrade from AWS AppSync SDK (Maintenance mode) to AWS Amplify.TroubleshootingAdd authorization rules to your GraphQL schema to control access to your data.Best practiceBest practices and examples for working with GraphQL.