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
5
votes
0 answers
AppSync / Apollo - Subscription - Update nested array within a model
For a Chat app I am trying to update the Apollo cache for a nested array, so that when a message is received for any conversation, the user can see the latest message in real time.
I have the following AppSync schema.
type Conversation
@model
…

Dylan w
- 2,565
- 1
- 18
- 30
5
votes
3 answers
What is a proper AWSJSON?
I have used this
var jsonData = {"hello": 20};
while passing this to graphql query
products:jsonData
it fails with this error
Validation error of type WrongType: argument 'input.products' with
value 'StringValue{value='{hello: 20}'}' is not a…
user3697484
5
votes
1 answer
How do you handle lists that require joined data from multiple data sources in AppSync/GraphQL?
type Employee {
id: String!
name: String
lastObservedStatus: String
}
type Query {
employees: [Employee]
}
This is a fictional schema to illustrate my question. I have two separate data sources that return lists that need to be…

Sean
- 55
- 4
5
votes
1 answer
How can I use IAM to invoke AppSync wtihin AWS Lambda?
I'm currently in the process of implementing a subscription mutation within AWS Lambda using AppSync. I want to use IAM and avoid using any other type of AUTH mechanism as I'm calling it within the AWS stack. Unfortunately, I'm receiving the…

Jose A
- 10,053
- 11
- 75
- 108
5
votes
2 answers
AWS amplify console.log() from backend side
I have set up a serverless express function (integrated with API gateway) using "amplify add api".
If I log something from one of the routes for example:
app.get('/items', function (req, res) {console.log('hello')}
Where do I find the hello?

Sam Brodersen
- 51
- 6
5
votes
1 answer
aws amplify codegen: how to generate base types for TypeScript?
I'm building a React + aws AppSync graphql web app with amplify. Have been enjoying this fantastic tool, but couldn't get the codegen to work as I expected - it doesn't generate base types for TypeScript frontend.
Say I feed this schema.graphql file…

Stanley Luo
- 3,689
- 5
- 34
- 64
5
votes
2 answers
AWS Appsync implementation using GraphQL-client library in .Net
I am trying to implement an app sync subscription similar to this python example but in .net https://aws.amazon.com/blogs/mobile/appsync-websockets-python/
I started this using the nuget package GraphQL.Client…

Jack
- 93
- 1
- 6
5
votes
0 answers
Integrate unit testing for appsync mapping templates in serverless framework
Is there a method to create unit tests to test the queries and mutations of AWS AppSync before deploying it(using serverless framework).
I have created appsync api and data source is relational database, but now i want to integrate test case for all…

Dharmendra Singh Negi
- 393
- 1
- 12
5
votes
3 answers
Wrapping graphQL(appsync) with REST API using Amazon api gateway
I have a graphQL server deployed with aws appsync. The thing is that our customers prefer a standard REST API. I'm looking for the simplest way to wrap graphQL query with REST API.
I'm considering using Amazon api gateway to make a REST endpoint,…

BSD
- 71
- 1
- 5
5
votes
3 answers
Proper way to setup AWSAppSyncClient, Apollo & React
I've been having issues getting started with React, Apollo, and AWS-AppSync. I can't resolve this error message:
TypeError: this.currentObservable.query.getCurrentResult is not a function
I'm using the updated packages of @apollo/react-hooks and…

Ryne
- 1,195
- 2
- 14
- 32
5
votes
2 answers
Proxy request to graphql server through AWS appsync
I have a graphql server on one of my EC2 instances running. I also have AWS appsync running, but at the moment it's integrated only with couple of lambdas.
I'd like to connect my Appsync with graphql server, so Appsync will behave as a proxy for…

Pawel Kiszka
- 812
- 7
- 11
5
votes
2 answers
Use a clientId without a client secret
In AppSync when I try to Login via Cognito User Pools and enters ClientID it gives an error Use a clientId without a client secret.
I am entering only ClientID but it not proceeding

Haseeb Ahmad
- 7,914
- 12
- 55
- 133
5
votes
1 answer
AWS Amplify - Pipeline Resolvers vs Lambda Resolvers
When you need to access multiple resources (eg different DynamoDB tables) from a single custom gql operation using AWS Amplify, why would you use pipeline resolvers over lambda resolvers, and vice versa? From reading around, there seems to be very…

pho_pho
- 672
- 11
- 30
5
votes
2 answers
Getting error "Node is not supported" using aws amplify datastore on react native and expo
AWS introduced Amplify DataStore at re:invent 2019. Datastore is a persistent on-device storage repository for developers to write, read, and observe changes to data.
According to the announcement does Amplify DataStore allows developers to write…

Sma Ma
- 3,343
- 2
- 31
- 39
5
votes
2 answers
Query DynamoDB with multiple begins_with clause in AppSync
I'm currently trying to create a dynamic query using AppSync and Apache Velocity Template Language (VTL).
I want to evaluate series of begins_with with "OR"
Such as:
{
"operation": "Query",
"query": {
"expression": "pk = :pk and…

Jose A
- 10,053
- 11
- 75
- 108