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 + Elasticsearch : Communication error while executing a request to OpenSearch
I am trying to do a quick poc between Appsync (graphql) and ElasticSearch(V7.10) but i am getting the below communication error when Appsync(resolver) is trying to invoke ES . Its a simple graphql query.
i tried following this tutorial for this poc…

user9142486
- 27
- 4
0
votes
0 answers
AppSync client doesn't returns data
I need some pro advice here because I am going a little crazy. I am trying to create an graphql client combining Apollo and AppSync. I've done this approach before, but it is not working in another project I've just created. My situation is the…

Michal Ružička Ružička
- 1,045
- 8
- 25
0
votes
1 answer
Why do I get Invalid UpdateExpression: Syntax error when using Appsync & DynamoDB?
I am new to AppSync and DynamoDB, sorry if this question is basic. I have an AppSync Resolver for this schema:
type Profile {
name: String!
location: String!
}
input ProfileInput {
name: String!
location: String!
}
type Mutation {
…

plutolaser
- 448
- 4
- 17
0
votes
1 answer
Appsync authentification with public / private access without AWS Incognito
I struggle here with understanding about how to secure my Amplify / Appsync application without using AWS Incognito Pools.
I am using an API key for now for connecting from my public apps and from a secured Backoffice. But I still would like to…

Angele
- 31
- 3
0
votes
1 answer
Get parent object in child resolver AWS AppSync
I have a graphQL schema like this:
type Post {
id: String!
title: String!
content: String!
user: User!
}
type Query {
allPosts: [Post!]
singlePost(id: String!): Post!
}
type User {
name: String!
posts:…

plutolaser
- 448
- 4
- 17
0
votes
0 answers
Is it possible to Query non nullable fields in Graphql without referencing it's type
New to Graphql. I've been searching for whether this is possible or not for hours. Take the code below for example...
type Character {
id: ID!
name: String
episodes: [Episodes!]!
}
type Episodes {
episode_number: Int
title:…

Chris Simmons
- 249
- 2
- 7
- 19
0
votes
1 answer
Circular refrence AWS appsync
I want to know if having a circular reference in AWS Appsync possible or not? I have searched a lot but couldn't find it. Something like this:
type Post {
title: String!
content: String!
user: User!
}
type Query {
allPosts: [Post!]
…

plutolaser
- 448
- 4
- 17
0
votes
1 answer
appsync rds resolver - insert polygon
I'm trying to insert an object containing a polygon using aws appsync resolvers into an aws aurora rds postgres instance which has POSTGis extension installed.
I have managed to create insert the new row when running the sql statement via the psql…

hyprstack
- 4,043
- 6
- 46
- 89
0
votes
0 answers
Getting "Elasticsearch responded with an error: Forbidden" when connecting to ElasticSearch/OpenSearch datasource from Appsync
I am implementing GraphQL endpoint in AWS AppSync to search data within ElasticSearch/OpenSearch.
I've implemented this using the Serverless Framework.
serverless.yml
service: SearchAPI
frameworkVersion: "2"
useDotenv: true
custom:
stage:…

Chamith Madusanka
- 471
- 2
- 4
- 11
0
votes
0 answers
How to create custom subscription in AWS AppSync
I am working on a chat Application using AWS AppSync. Out of the box, I have some of the subscriptions created. But I need to create a new custom subscription.

Balaji Venkatraman
- 1,228
- 12
- 19
0
votes
1 answer
Why does using ReturnValues: 'ALL_NEW' in a DynamoDB UpdateItem operation return a null ID?
I am doing an update operation on a DynamoDB item using AWS AppSync GraphQL mutations and I want all the values of the item after the update operation returned via the API after a successful update.
The item updates perfectly fine & I've also…

Sumchans
- 3,088
- 6
- 32
- 59
0
votes
1 answer
Appsync GraphQL with "None" data source trying to pass through a list of return items
I have an AppSync API that I'm using for an app. One action I'm trying to do is have a Lambda function that collects certain data fire off a GraphQL mutation, and then have a subscription on my front end collect that data when the mutation is…

Patrick
- 11
- 1
0
votes
0 answers
Update Online/Offline status in AWS AppSync
I am developing a chat app with React + AppSync + DynamoDB. I wanted to show the Online/Offline status to other users in the App. So I created a field called isActive in the user table. Whenever the user logs in to the app I change it to Online.…

Balaji Venkatraman
- 1,228
- 12
- 19
0
votes
1 answer
Next.js SSR with AWS Amplify Why is User Needed to View Data?
I'm working with Next.js Server Side Rendering and AWS Amplify to get data. However, I've come to a roadblock, where I'm getting an error saying that there's no current user.
My question is why does the app need to have a user if the data is…

hellomello
- 8,219
- 39
- 151
- 297
0
votes
1 answer
Check how long the current user has been logged into
Background:
I have a requirement where I need to allow the refresh token live for a really long time for some types of user, but I want to limit it (expire it) for other users.
Both sets of users have to be in the same Cognito user-pool.
My first…

Molina12
- 180
- 1
- 16