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
Using open source libraries instead of AWS Amplify SDKs
I'm finding the Amplify SDKs for iOS difficult to work with, likely because we don't seem to fit in with their target audience. Amplify offers mobile developers a BaaS solution, and as such the Amplify SDK is heavily-geared towards this use case.…

blau
- 1,365
- 15
- 18
0
votes
2 answers
How to detect AWS Amplify client disconnect from server-side?
I'm developing a game using AWS Amplify. The game state will be stored in DynamoDB tables and will be queried and modified with GraphQL. There isn't a pressing need for realtime or low-latency communication; However, I need to detect when a player…

5nefarious
- 347
- 1
- 3
- 11
0
votes
1 answer
Is it a good practise to use AWS Amplify datastore for a social media app?
I'm creating an app with React native and Amplify datastore. I read in documents that all the data would be downloaded on users devices for auto syncing.
My question is that, if I have a million users in my table, all the data would be downloaded on…

Amin
- 93
- 1
- 13
0
votes
2 answers
Querying DynamoDB with multiple fields in an AppSync Resolver
I have a DynamoDB messages table with id, content, createdAt (int), userID fields.
I can obtain a user's messages using below resolver:
{
"version" : "2017-02-28",
"operation" : "Query",
"index" : "userid-createdat-index",
"query" :…

Kerem
- 1,494
- 2
- 16
- 27
0
votes
1 answer
How would I autofill a field in an aws appsync schema?
I'd like to autofill a "userId" field when an object of this type is created.
type FriendRequest @model
@key(fields: ["userId", "receiver"])
{
userId: ID!
receiver: ID!
}
How would this be done? Would I need an @function directive on the userId…

Sean
- 107
- 7
0
votes
1 answer
Calling GraphQL appSync requests and wait for the result to come back Swift iOS
I would like my app to wait until the request results to come back. So in below block, what I'm trying to do is if the requested query returns empty results, I'd like to call "self.insertCreditRecord". Has anyone done…

Hamed Ansari
- 49
- 3
0
votes
2 answers
How can Appsync request headers by passed to a child resolver?
I have an Appsync Schema which defines a User type which itself contains a List of Notes:
type User {
id: ID!
name: String!
notes: [Note]
}
type Note {
id: ID!
text: String!
}
In the request mapping for the User, I am able to access the…

stang
- 311
- 3
- 12
0
votes
1 answer
AWS AppSync GraphQL - How to use PK/SK query instead of scanning whole dynamoDB table for graphql list APIs
My DynamoDB table data schema:
PartitionKey: "PK" -> String
SortKey: "SK" -> Number (timestamp)
Attribute: "Summary" -> JsonMap
My main usecase is that I have a "PK" and the range of "SK", which is the target time range, and query DDB to get a list…

Q. Jing
- 11
- 3
0
votes
1 answer
How to use custom input types in AppSync GraphQL schema?
I'm experimenting with AppSync + DynamoDB. I want to have the following types in my GraphQL Schema:
type User {
user_id: String!
}
type Box {
name: String!
user: User!
}
How can I create, in DynamoDB, a table storing items pointing to…

Eric
- 477
- 3
- 17
0
votes
1 answer
Relationships Between Primary Keys with Amplify Schema File
Normally I wouldn't try and create a relationship between primary keys within my Amplify Schema, though I am trying to recreate a friends code so that I can regularly deploy it with Amplify, hence I don't really have an option in this case.
My…

MHausner
- 75
- 1
- 7
0
votes
1 answer
AWS AppSync getting the count of another table (for example counting the likes of a post)
I have the following AWS AppSync/Amplify model
type Event @model {
id: ID!
name: String!
ticketsSold: Int!
moneySum: Int!
}
The ticketsSold property must reflect the count of orders with eventId = X. moneySum must represent a SUM of all the…

Pieter Moeyersons
- 105
- 2
- 9
0
votes
1 answer
How to update AWS Amplify Console's CICD DockerFile w.r.t. FrameWork Versions?
I'm following steps mentioned in : https://aws.amazon.com/getting-started/hands-on/build-react-app-amplify-graphql/module-three/?e=gs2020&p=build-a-react-app-two
In Step3 , in the "Deploy changes to live environment" ; AWS Amplify is provisioning…

Pawan Mude
- 1,609
- 6
- 19
- 32
0
votes
1 answer
Perform AppSync Mutation from Lambda(Python) Fuction, Triggered from S3 Upload
Greeting all!
I have a client application in React that uses an AppSync GraphQL API back end. I have added storage to amplify and can upload files to the storage. When a file is uploaded to the Storage a Lambda function is triggered and I am able…

Aneesh Bharath
- 49
- 1
- 5
0
votes
1 answer
AWS App-Sync (request failed with status code 403)
I am trying to create a new API (app sync) when I am creating a schema
I got request failed with status code 403
creating DynamoDB tables. Please do not refresh...,
creating Schema. Please do not refresh...,
Request failed with status code 403

yali
- 1,038
- 4
- 15
- 31
0
votes
1 answer
How to access authenticated GraphQL API from Nuxt frontend
I have an authenticated GraphQL API endpoint created using Appsync and Cognito (basic email and password authentication).
How I can connect to this API from an existing Nuxt frontend application? I don't want to use the default vue frontend created…

Sandeep K.
- 9
- 2