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
0
votes
1 answer
How to customize graphql error response format in Appsync?
I am using Appsync for graphql server. and use `$util.error(String, String, Object, Object)
in the response mapping template to response error to clients. However, the error messages clients get looks like below json. There are too many extra…

Joey Yi Zhao
- 37,514
- 71
- 268
- 523
0
votes
1 answer
AWS Lambda error GraphQlError: Adapter is not a function when attempting to run mutations to AppSync endpoint
I am running a lambda inside my AWS account that is attempting to run mutations against an AppSync instance in the same account which is authenticated via AWS_IAM. I have created a Role that my lambda assumes which has access to my mutations with…

Niru
- 1,407
- 1
- 28
- 47
0
votes
2 answers
AWS AppSync & DynamoDB Single Table Design: PutItem based on another item's field value
I'm new to AWS AppSync and I have adopted the single table pattern in DynamoDB. Now I am trying to create an item based on a particular field value in the existing item in the same table. For example, I have a table called transaction which holds 2…

Suresh kumar
- 11
- 2
0
votes
1 answer
How can I get appsync API endpoint in serverless configure file?
I am using serverless to deploy an Appsync API and a few lambda functions. This plugin https://github.com/sid88in/serverless-appsync-plugin is used to deploy Appsync. The lambda and Appsync are defined in the same serverless.yml file and they are…

Joey Yi Zhao
- 37,514
- 71
- 268
- 523
0
votes
1 answer
How can I response a type I should use in the lambda which is the resolver of a subscription in Appsync?
I am building grpahql on Appsync and use websocket as subscription communication channel. Below is the scheme:
type Subscription {
addedPost: Post
@aws_subscribe(mutations: ["addPost"])
updatedPost: Post
@aws_subscribe(mutations:…

Joey Yi Zhao
- 37,514
- 71
- 268
- 523
0
votes
1 answer
Appsync's graphql subscription not working with PHP5
Can anyone help me with a working example of graphql subscription with php5 and AWS Appsync or php5 WebSocket client which works with Appsync?
I am trying textalk but haven't got any success.

Roshan Labh
- 41
- 1
- 5
0
votes
1 answer
Vue.js using aws AppSync has GraphQL Validation error of type Unknow Type
I had this query runs perfect in AppSync console with no problem:
query listTftTeamCombos {
listTftTeamCombos {
items {
sortId
teamId
}
}
}
But when I try to use it in local ide with Vue.js, it…

Sam Min Wong
- 151
- 3
- 18
0
votes
0 answers
AWS AppSync add Gatsby-Image Fluid Image as foriegn key to Other GraphQL Model
How would I add a gatsby-image type to a field on a graphQL model like below?
type PortfolioItem @model {
id: ID!
name: String
Image: ?????
......other fields
}
I know im supposed to create a foreign key with another object, but how do I make…
user10410397
0
votes
2 answers
velocity template loop through array to create string
I'm trying to use the velocity templating language in an AWS appsync resolver to create a string by looping through an array of characters.
Given the array listOfWords = ["好" "克力"] how would I achieve the string output of queryString = "+\"好\"…

hyprstack
- 4,043
- 6
- 46
- 89
0
votes
1 answer
How to use Apollo Client virtual fields
I am having trouble understanding how to set up virtual fields and/or mocking with Apollo Client and my graphql API (Appsync).
I have created a codesandbox here https://codesandbox.io/s/stoic-johnson-rkgmg?file=/src/EventList.js. This is a demo…

Simon Verhoeven
- 347
- 4
- 16
0
votes
1 answer
AppSync with Glue integration
I wanted to check if anyone has worked or seen any scenario where AWS AppSync is integrated with AWS Glue Data Catalog?
We are trying to create graphql API with the help of AWS AppSync and out data source is the data catalog in AWS Glue. What we had…

kavya sudeep
- 43
- 3
0
votes
0 answers
How to process results fetched from cache and network using AWS AppSync for Android
I am using AWS AppSync for Android, and I want to display a list of Persons into a RecyclerView. I am fetching paginated data with the AppSyncResponseFetchers.CACHE_AND_NETWORK flag. If data is present in the cache, onResponse is called twice,…

irkForce
- 352
- 2
- 12
0
votes
1 answer
How to get total count of data from dynamodb in aws appsync for pagination?
I am working on web app using aws amplify. And I am using Appsync GraphQL as web server.
But I don't know a way to get a total count of data from Dynamodb through aws appsync.
Please help me.

Nicolas Zhang
- 47
- 1
- 6
0
votes
1 answer
Disabled users in AWS Amplify Cognito still can access to data in the API
Graphql Api and Auth added on a brand new project.
I go to Amplify console -> myapp -> api -> GraphQL API and click on View in AppSync. On the run query part, I run A sample query like this:
{
listTodos {
items {
name
}
}
}
And…

Chux
- 1,196
- 1
- 9
- 24
0
votes
1 answer
How can I manage how many live subscribers for a topic in Appsync?
I am using AWS Appsync for graphql subscription. It works fine and i can see Appsync manages all the hard stuff. But what is not clear to me is that how I can see how many subscribers are subscribing Appsync?
Is there an API I can use?

Joey Yi Zhao
- 37,514
- 71
- 268
- 523