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 query to API in custom resolver AWS Amplify CLI?
I'd like to fetch data in my custom resolver using the query defined in graphql.schema. Is it possible? How could I do the query?

Michał Miler
- 152
- 1
- 9
0
votes
1 answer
How to limit AppSync queries for users?
AWS AppSync charges you for the # of GraphQL operations (each request could be a GraphQL query/mutation).
Is there a way to protect from malicious users that spam AppSync and GraphQL operations?
I.E., is it possible to limit the # of GraphQL…

August Jelemson
- 962
- 1
- 10
- 29
0
votes
1 answer
Filter AppSync Subscription
I'm building a simple multiplayer game using AppSync (to avoid having to manage WebSocket from zero) and Amplify (specifically on Android, using Kotlin).
The problem is that when players are connected to a game, should listen for updates for the…

Alberto Sinigaglia
- 12,097
- 2
- 20
- 48
0
votes
1 answer
What is the proper way to get multiple objects based on an array of values, when writing your graphql.schema file?
for example:
"""
A user device
"""
type device @model {
id: ID!
statusID: Int!
devFunctionIDs: [Int]!
functions: [devFunction] @connection(fields: ["devFunctionIDs"])
}
"""
A function or feature of a device
"""
type devFunction @model {
…

ChrisW
- 1
- 2
0
votes
1 answer
How to add adminQueries for multiple groups in Amplify?
When calling an Admin Queries using amplify, it gives an error
`User does not have permissions to perform administrative tasks`
There are two type groups, admins and subAdmins.
When I tried to update the permission for AdminQueries Auth, I can…

Ashwanth Madhav
- 1,084
- 1
- 9
- 21
0
votes
0 answers
How to create staging/dev/prod environments for AWS AppSync API
I have an AWS AppSync API (maybe like 80% done) and I'd like to create environments for staging, development, production, etc. My initial googling led me to using Amplify to create environments but I didn't see anything about making environments for…

donovan
- 13
- 2
0
votes
1 answer
Link mulitple mutations in AppSync
I'm doing an application in AppSync and I'm trying to create with Cloud Formation one schema where one mutation is linked to one resolver and a second mutation is linked to a second resolver. But it always give me an error saying that I can't attach…

Thauany Moedano
- 551
- 2
- 8
- 21
0
votes
0 answers
AWS AppSync Client SDK
Is there any way to send the mutation, query using AWS Java SDK? I need to use it using IAM Role
Default authorization mode = AWS Identity and Access Management (IAM)
Also, there is no function to make a query and send it
AWSAppSync awsAppSync…

yali
- 1,038
- 4
- 15
- 31
0
votes
1 answer
AppSync: Unable to convert to object
I'm getting this error in AppSync while trying to create a mutation:
{
"data": {
"sendMessage": null
},
"errors": [
{
"path": [
"sendMessage"
],
"data": null,
"errorType": "MappingTemplate",
…

Lucas Veiga
- 1,758
- 7
- 27
- 45
0
votes
2 answers
aws appsync subscription not working with flutter graphql_flutter package
my pubspec.yaml
dev_dependencies:
flutter_test:
sdk: flutter
graphql_flutter: ^4.0.0
roomctrl.dart
import 'package:flutter/material.dart';
import 'package:graphql_flutter/graphql_flutter.dart';
import…

Varun Kumar
- 292
- 5
- 19
0
votes
1 answer
AWS AppSync resolver cache
We want to enable cache only for a specific graphql query. I created the cache and chose "per-resolver caching" in appsync console. Then I enabled cache inside the query resolver. However, the caching metric shows no cache hits or misses. It seems…

spinnnnnnnn
- 11
- 1
0
votes
1 answer
AppSync: pipeline resolver #return null result
I'm successfully using a pipeline resolver to persist a parent/child relationship, except when the list of child items is empty and I #return early.
I'm guessing the issue is around my response mappers and use of $ctx.prev vs $ctx.result but I can't…

Dave
- 41
- 1
- 4
0
votes
1 answer
Nested GraphQL mutations with AWS Amplify/AppSync
I've reached out on the AWS forums but am hoping to get some attention here with a broader audience. I'm looking for any guidance on the following question.
I'll post the question below:
Hello, thanks in advance for any help.
I'm new to…

Thomas
- 368
- 1
- 7
- 19
0
votes
1 answer
Amplify JS API GraphQL Elasticsearch throws "ResolverExecutionLimitReached" error
I've implemented the Amplify JS Library with a Vue project and have had success with all of the features of the library except this issue. When I query a model with Elasticsearch, it returns the appropriate results, but also the error of…

jlommori
- 161
- 1
- 13
0
votes
1 answer
AWS AppSync Lambda Resolver Get Query Return Type
In AWS AppSync, I have a Lambda resolver. The resolver handles multiple queries e.g. getUser, getUsers, getClient, etc. How can the Lambda function get the query return type defined in the AppSync GraphQL schema?
The return types are defined in the…

Matthew
- 2,871
- 5
- 34
- 59