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
AppSync DynamoDB atomic append to existing list attribute and other list operations
We have an object in dynamoDB with the key id and the data below in JSON format:
We are creating, getting, and updating into this table through our frontend application using Amplify API connection to AppSync.
Currently when we want to add items to…

Alien13
- 558
- 3
- 8
- 30
0
votes
1 answer
"Elasticsearch:UserIllegalArgumentException" on app that was working before
I have an app published on Android that was working perfectly, one day just stopped working, debugging the code I got this error on elastic search query:
"Elasticsearch:UserIllegalArgumentException"
Any clue? I think this is something related to AWS…

Ronaldo De La Cruz
- 85
- 1
- 9
0
votes
2 answers
Receiving "Unsupported element '$[operation]'." when running a mutation
I am having an issue running a mutation that was generated by the Amplify CLI.
I'm on node v14.18.1, amplify CLI 7.6.2.
I just recently migrated to the GraphQL Transformer v2.
Here is my model:
type User
@model
@auth(
rules: [
{ allow:…

Tim
- 344
- 1
- 12
0
votes
1 answer
AWS Appsync and DynamoDB - Query using IN operator
I have a table in DynamoDB connected to an appsync API. The table looks something like...
ID
State
Value
0
NY
100
1
IL
0
2
TX
50
I am trying to use the appsync UI to query the table using the "IN" operator, but this does not seem to…

Joe Bringley
- 93
- 10
0
votes
1 answer
How to manually set partition key for AWS Amplify DynamoDB API
Beginner to AWS trying to use AWS Amplify as a backend for a react native application. I've created an API with a schema using the Amplify wizard. I specified an id field that has value type of ID which becomes the partition key. I would like to set…

xyzfeasd
- 1
0
votes
1 answer
Get Total Number of AppSync requests generated for certain period of time | AWS | APPSYNC
Is there a way to get the Total number of (appsync) api requests made to application for a certain time period?
I'm testing a module of application and it is generating requests. I want to calculate the total number of requests generated for all the…

Waleed Ahmad
- 446
- 3
- 15
0
votes
3 answers
AppSync Lambda Authoriser Source IP Address
I've recently started using a Custom Lambda Authoriser for an AppSync API which has been working great but have found a requirement for the source IP address within that authoriser.
I've been doing a bit of Googling and can find alot of information…

CMP
- 11
- 2
0
votes
1 answer
How do I create a GraphQL query for DynamoDB
My DynamoDB table 'EventChat' has 'eventId' as the partition key and 'createdOn' as Sort Key. I am using AppSync and Apollo client to query the database.
I would like to get all items for a certain 'eventId' and items created BETWEEN two createdOn…

user2111865
- 1
- 2
0
votes
1 answer
DynamoDB Appsync Query on multiple attributes
My app uses AppSync resolvers to fetch data from DDB and return it to our front-end. One table we have is for Notifications. A Notification can be either pending or default (non-pending). The table itself has a primary key of notification_id and we…

Eric Jubber
- 131
- 1
- 9
0
votes
0 answers
Can I make a post call to HTTP endpoint from AWS AppSync Console in free tier?
I have created a schema and tested the query (by making a GET request to the HTTP Endpoint as data source) in it which works fine. However, any mutation (containign POST/PUT/PATCH/DELETE requests) to HTTP endpoint does not send the value in request…

abhishek g
- 3
- 1
0
votes
1 answer
How to add filterInput field in amplify?
I got below schema (schema.graphql),
type Admin @model @auth(rules: [{ allow:owner }]) {
id: ID!
name: String!
}
type Staff @model @auth(rules: [{ allow:owner }]) {
id: ID!
name: String!
admin: Admin @connection
}
Now I want…

yozibak
- 119
- 1
- 6
0
votes
1 answer
How to get list of objects using an array in AWS App Sync?
The intention is to query a list of users using an array of User IDs passed into a contains filter. The schema below is my attempt at solving this, but the query does not return a list of users. Even passing only a single User ID results in an empty…

crayden
- 2,130
- 6
- 36
- 65
0
votes
3 answers
AppSync HTTP resolver mapping template not working with method PATCH
I'm using this AppSync resolver mapping template to update a user:
{
"version": "2018-05-29",
"method": "PATCH",
"params": {
"headers": {
"Content-Type": "application/json"
},
"body":…

Maucan
- 143
- 1
- 12
0
votes
2 answers
In Terraform how to reference ID's of one resource in another resource?
Below is the code I have where am stuck in capturing function_id from aws_appsync_function.appsync_functions and reference to create aws_appsync_resolver
#---- Create AppSync Functions -----
resource "aws_appsync_function" "appsync_functions" {
…

sudhir tataraju
- 1,159
- 1
- 14
- 30
0
votes
0 answers
can we connect elastic search cluster running on EC2 as a datasource for aws appSync
I have an ec2 cluster in which my ES is running. I want to use AWS app sync, can I connect that as a data source to it. If so how?
Or is it tightly coupled to use with Amazon OpenSearch Service?

Suhas Kashyap
- 398
- 3
- 14