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
GraphQL query for only unseen content - Schema Advice
I'm building a graphql schema through AWS AppSync and have a question regarding schema structure. My app will show users new posts and have them either join or pass on them. I'm trying to build in a way that I will only show users new posts and not…

Julien S.
- 214
- 3
- 9
0
votes
1 answer
mqtt+AWS AppSync: WebsocketConnectionError: WebSocket handshake error, connection not upgraded
I am using paho-mqtt Python library to implement subscriptions against AWS AppSync.
Here it is the code for the subscription:
postHeaders = {
'Content-Type': 'application/json',
**self._headers
}
…

fcracker79
- 1,118
- 13
- 26
0
votes
1 answer
AppSync update two tables with one mutation
I am a little confused on the best approach in how to update two tables with on GraphQL mutation, I am using AWS AppSync.
I have an application where I need a User to be able to register for an Event. Given I am using DynamoDB as the database, I…

andy mccullough
- 9,070
- 6
- 32
- 55
0
votes
1 answer
How do you create a Cognito user and get their accountId or cognitoIdentityId?
I'm using Appsync with the AWS_IAM authorization type. The identity of the user is provided in the $context.identity of the resolver:
{
"accountId": "123456789",
"cognitoIdentityAuthProvider":…

Casper Alant
- 452
- 5
- 15
0
votes
1 answer
How do I minimize data redundancy in DynamoDB many-to-many relationship?
I am currently building a simple newsletter app, where users can get invited via their emails to read a newsletter.
I have the current example table setup:
where i use autogenerated Ids and emails as partition keys and generic keywords as sort…

furyozo
- 638
- 5
- 11
0
votes
1 answer
Apollo Vue (using AWS Amplify/AppSync) Graphql query does not pull parent data
I am using AWS AppSync (via Apollo Vue) and I have the following graphql model.
type Service @model
{
id: ID!
name: String!
description: String!
}
type Session @model
{
id: ID!
service: Service @connection(keyName:…

bizready
- 139
- 3
- 14
0
votes
1 answer
AppSync Schema Design
I am fairly new to AppSync and i have been trying to understanding the in and outs of the relational models.
I have the following requirement where my App has the follow schema type Users, Posts and Events.
A User should only be able to make a…

Graig Peru
- 107
- 1
- 3
- 12
0
votes
1 answer
AppSync Relationship
Lets say i have a the following requirement, A Project can have only two employees at a time
and a employee can only be connected to One Project at a time. Whats the Best Possible Schema
model using AWS AppSync graphql that could possible achieve…

Graig Peru
- 107
- 1
- 3
- 12
0
votes
0 answers
How to combine key with custom resolvers with amplify or appsync graphql queries?
I am using amplify graphql apis. I have added a few @key for my search and sort of the events data. Then I have added a custom Query to search nearby events by lat and long. Now if had to search the nearby events by creatorId or status with…

Subhendu Kundu
- 3,618
- 6
- 26
- 57
0
votes
0 answers
How to write unit test cases for AWS Appsync
I've been using AWS appsync service. However, I'm not able to figure out a way to write unit test cases for the development I've been doing.
Please see if anyone can share any information in this regard.

Neeraj Garg
- 31
- 4
0
votes
2 answers
React Amplify query with connection
I am currently building a React application with Amplify Cli.
The schema.graphql
type Ticket @auth(rules: [{ allow: owner, operations: [create, update, delete] }]) @model @searchable {
id: ID!
location: String
city: String
comment: String
…

meck373
- 1,114
- 1
- 18
- 31
0
votes
0 answers
AWS Amplify GraphQL API, how do I add onto the premade API calls?
Is there a way to add on the premade GraphQL APIs that Amplify autogenerates? For example, I have a listTasks query call but I want to add more input fields. Does Amplify provide a way to do this easily? Right now I just copied the query and put it…

BKoo
- 95
- 3
- 13
0
votes
1 answer
Creating AWS AppSync using AWS Lambda (NodeJS)
In my project, we create tables in AWS dynamodb based on the user id using AWS lambda (NodeJS).
Once the table is created the lambda function will create a graphql endpoint for that particular table so that the user can get real-time data for that…

Aditya toke
- 461
- 4
- 14
0
votes
1 answer
AppSync Cloudformation template generator
I have been using the cloudformer template within Cloudformation to generate a template for AWS resources. I notice it does create the template with DynamoDB tables and some other resources but does not create one for AppSync, Lambda, and IAM roles.…

Niru
- 1,407
- 1
- 28
- 47
0
votes
1 answer
Aurora Serverless Postgresql as data source for app sync
I was facing problem with app sync where data source is Relational Database.
So, my goal is to connect Aurora server less postgresql cluster with app sync as data source and get it working.
Steps I have performed(all via server-less framework)…

Dharmendra Singh Negi
- 393
- 1
- 12