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
3 answers
Adding timestamp automatically through AWS Appsync resolver with Dynamodb
I tried to add timestamp automatically when I create some post.
But it is not working the example of appsync…

Jeff Gu Kang
- 4,749
- 2
- 36
- 44
5
votes
1 answer
AWS AppSync IAM DynamoDb Role
I am trying to create a simple IAM role to have my AppSync service connect to my DynamoDb database, but because AppSync is in preview, IAM does not recognize AppSync as a service. How do I create an IAM role for to let AppSync have full access to…

Sepehr Sobhani
- 862
- 3
- 12
- 29
5
votes
1 answer
AWS AppSync IAM Authorization with Cognito Federated Identities
I am using AWS AppSync, and logging in users with Cognito Federated Identities.
I'm hoping to have unauthenticated users have access to certain endpoints, while authenticated users will have access to other endpoints.
I have configured IAM Roles…

nick
- 83
- 6
4
votes
1 answer
"Error: No current user" when calling unauthenticated graphql query from react app
I'm trying to follow the Amplify docs to expose a graphql mutation publicly via unauthenticated requests. From the docs, it seems like this should be possible.
From the CLI docs:
You can also override the authorization provider. In the…

Travis
- 2,961
- 4
- 22
- 29
4
votes
1 answer
AppSync Issue with node js and subscribe event function
I am using node js latest version and appsync for the real-time event provided by AWS.
Below is my code I am not getting any notification when I am pushing data from a mutation on any channel name.
This is my generator function
const subscribe =…

Durga
- 49
- 4
4
votes
1 answer
Failed to pull backend - Please check the supported SSR features - Next.js
After updating some code, to use GraphQL instead of Data Store, my builds are failing. I have CI/CD setup in Amplify, and when I check in code it kicks off a build. I haven't added any new front-end features, other than references to…

essedbl
- 520
- 1
- 7
- 19
4
votes
0 answers
How to get original GraphQL query from AWS AppSync request
Introduction
Currently, we're using AWS AppSync as API entry point for our proper GraphQL API.
The point is that we need to retrieve the original GraphQL query from the request AppSync sends to our GraphQL API.
In brief we have:
Client --[original…

Mpu-Mypl
- 41
- 3
4
votes
0 answers
Global distribution/High latency in other regions with AWS AppSync
ISSUE - High latency with AWS Cloudfront on top of AWS AppSync whereas AWS API Gateway (edge optimized) with AWS AppSync showing better results (low latency).
If AWS gateway internally uses cloud front for global distribution
then result should be…

Shubham Nigam
- 3,844
- 19
- 32
4
votes
1 answer
"Not Authorized to access " error on create mutation + GraphQL
I'm running the below GraphQL query to create data on dynamodb table, but gets the response with "Not Authorized to access createClient on type Client"
Why this is happening at.
GraphQL query:
`mutation addClient{
createClient(input:{
…

Nadeesha Nawagaththegama
- 99
- 1
- 8
4
votes
1 answer
How to setup Amplify Datastore schema for single table design
For my project, I need to be able to query and change my data offline, syncing the changes whenever the connection is restored. Therefore, DynamoDB with Amplify Appsync and Datastore seems like the best option, but we are struggling with some…

Dennis Dekker
- 43
- 3
4
votes
1 answer
AWS Appsync GraphQL query silently failing though successful 200 response
I have one React Amplify app running with two environments. One environment is for my wife's blog (www.riahraineart.com) and one for my blog (www.joshmk.com). Both sites are running off the same repo, I'm just configuring the site's differently…

joshmk
- 425
- 8
- 23
4
votes
1 answer
AppSync query returns Unauthorized when using an IAM account
I'm using AWS Amplify. I have two models like below in my GraphQL schema.
type Class
@model
@auth(rules: [{
allow: owner,
identityClaim: "sub"
}
{
allow: owner
identityClaim: "sub"
ownerField:…

ataravati
- 8,891
- 9
- 57
- 89
4
votes
1 answer
Next.js and AWS Amplify getting Error: No Current User - getServerSideProps
getServerSideProps is displaying "No Current User", but I'm logged in my app.
type Post
@model
@key(
name: "postsByUsername"
fields: ["username"]
queryField: "postsByUsername"
)
@auth(
rules: [
{ allow: owner,…

hellomello
- 8,219
- 39
- 151
- 297
4
votes
0 answers
AWS AppSync Caching - Using header parameters as keys to configure caching calling graphql queries
Hi all and thanks in advance for your help,
I need to implement a caching layer on AWS AppSync for my queries to graphql.
I already used the context.arguments object to specify the keys for the caching like this:
- dataSource: aws_appsync_lambda
…

LucaEffe
- 103
- 1
- 8
4
votes
1 answer
AWS Lambda function unable to access AppSync GraphQL API - permission denied
I am having trouble calling an AppSync GraphQL query via a AWS Lambda function. I have been using the code in this article, specifically the latter part that uses IAM permissions:…

user12510832
- 76
- 7