AWS AppSync lets you build data-driven apps with real-time and offline-first capabilities based on GraphQL with custom resolver support for DynamoDB, ElasticSearch, AWS Lambda, and Local datasources.
Questions tagged [aws-appsync]
1785 questions
6
votes
1 answer
How to drop and recreate local dynamodb/appsync/amplify database created by mock api?
I am using AWS Amplify to build a Web Application. I am using Appsync and DynamoDb and I've defined my GraphQL schema. Now, Amplify offers the ability to test local GraphQL endpoints by running "amplify mock api" from the command line. I did this…

Stanley
- 5,261
- 9
- 38
- 55
6
votes
0 answers
AWS Appsync deployment strategy
We are launching an Appsync project to production soon, and my team are suggesting to introduce blue/green deployment to reduce possible downtime, with the ability to rollback to the original schema if an error occurs. From my limited knowledge in…

jarebb
- 71
- 2
6
votes
1 answer
What is the $condition input parameter for in a GraphQL mutation generated by AWS Amplify CLI?
I have generated a simple GraphQL API on AWS AppSync (using CLI) from this model:
type WalletProperty @model {
id: ID!
title: String!
}
This generated a CreateWalletProperty, UpdateWalletProperty and DeleteWalletProperty mutations all…

Lukas Rossa
- 367
- 4
- 16
6
votes
0 answers
Using custom Apollo Client with AWS AppSync
Background
In a new project I am working on we are looking into using AppSync for our GraphQL server (with Amplify). However, as it depends on an old version of Apollo Client (2.4.6), and Apollo Client has introduced major changes in version 3.0,…

Camilla
- 61
- 4
6
votes
0 answers
How to write Upsert mutation query(insert or update) in AWS DynamoDB AppSync resolver
I am working on DynamoDB with the help of AppSync GraphQL queries.
I have a one DynamoDB table in which username is Partition key(hash key) and timestamp_value is sort key(range key).
I am saving two things against one item i.e. one is reading and…

Vikramsinh Gaikwad
- 827
- 1
- 9
- 23
6
votes
1 answer
Using AWS Appsync with AWS Neptune
I'm currently using Aws Appsync, Aws Lambda, and Aws Neptune for an application. My Lambda function uses NodeJS 12. Right now my problem is getting back the appropriate JSON format from Neptune (more specifically gremlin) for my graphql api…

MCam
- 79
- 5
6
votes
1 answer
Pagination with Filtering using Query Operation in DynamoDB Template
I would like to be able to filter a pagination result using query operation before the limit is taken into consideration.Is there any suggestion to get right pagination on filtered results?
I would like to implement a DynamoDB Scan OR Query with the…

Taha Farooqui
- 637
- 10
- 25
6
votes
1 answer
AWS amplify authentication, enable only sign in - not sign up
From all the great tutorials I looked for of how to add an auth module for a react app in amplify. The only type of module I see is a complete feature of sign in + sign up.
What I'm trying to achieve is:
Set up a custom Cognito user pool and add…

Shai Volvovsky
- 123
- 1
- 10
6
votes
1 answer
How can I pull changes made on the AppSync web-console with the Amplify CLI "pull" command
What I want to accomplish:
I have edited an amplify + AppSync project on the AppSync web console and I want to pull it onto my local machine.
What I did:
I have initialized an amplify project with the Amplify CLI by executing three commands:
amplify…

ThinkingBoutCode
- 61
- 6
6
votes
0 answers
Cannot Successfully Generate Model files Using Amplify for Android
Expected Results
Java classes for the models in schema.graphql are created.
Actual Results
I get this message:
Error: No AppSync API configured. Please add an API
What I have tried
As suggested in the Amplify API documentation, have tried to…

Bitcon
- 141
- 1
- 6
6
votes
3 answers
AppSync BatchPutItem not saving items
I'm trying to batch put a number of items to DynamoDB using AppSync. When I call the resolver it throws no errors but nothing is saved to the database.
Schema
type BoxScore @model {
id: ID!
userId: String!
gameVariant: String!
complete:…

Max Phillips
- 6,991
- 9
- 44
- 71
6
votes
1 answer
AWS AppSync Subscriptions without mutations
Reading the AppSync documentation, it seems that AppSync Subscriptions only work by attaching a subscription to a mutation.
But what if I need a subscription that is independent of a mutation? That is fired on some internal state change? For example…

Nathan
- 7,099
- 14
- 61
- 125
6
votes
4 answers
How to send JSON array through graphQL and AWS AppSync to add data to Dynamo Table?
What I'm trying to do is to send data from a React Native app through AppSync so that I can update a user's data on a dynamo table. I can perform all of my CRUD operations, just not a list of data. When I try, I get an error that what I'm sending…

ianarko
- 402
- 3
- 12
6
votes
1 answer
AppSync/Graphql Multiple subscriptions or one subscriptions for multiple ids?
Problem :
We are trying to make a chat application using AWS product AppSync and we want to achive the best performance but we're facing problem with real time subscriptions in AppSync and Graphql where a single user will need to handle hundereds…

Ahmad AlMashni
- 93
- 1
- 5
6
votes
1 answer
How to send custom error in AppSync with $util.error
I have a question about AppSync error handling. I would like to send errorInfo object along with the error response and I tried with $util.error. Per the…

Tan Duong
- 1,473
- 2
- 17
- 29