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
Getting customized responses from GraphQL queries with AWS AppSync and Amplify
I am very new to GraphQL, Appsync and Amplify. I am using AWS AppSync with Amplify to fetch records from a DynamoDB table via GraphQL queries. The front end is in ReactJS. Looking at some examples on the aws docs, it seems like I can fetch records…

user20358
- 14,182
- 36
- 114
- 186
0
votes
0 answers
Amplify Graphql not respecting the limit on my query
I have an Amplify application, using a DynamoDB table with ~50 items and accessing it via a React app.
The initial (simplified) model:
type Video @model
@key(name: "ByOrganization", fields: ["videoOrganizationId", "id"], queryField:…

dfranca
- 5,156
- 2
- 32
- 60
0
votes
1 answer
"An error occurred: GraphQlDsUsersRole - Syntax errors in policy." when using serverless-appsync-plugin
Following alongside the tutorials, but changing some semantic things, I'm getting this error from serverless when I deploy:
An error occurred: GraphQlDsUsersRole - Syntax errors in policy. (Service: AmazonIdentityManagement; Status Code: 400; Error…

chinahalffull
- 23
- 4
0
votes
1 answer
How to execute a bulk ElasticSearch operation from an AppSync resolver?
I'm trying to execute a bulk operation over an ElasticSearch index from a VTL AppSync resolver.
Specifically this mutation:
input CreateTopicsInput {
language: String!
texts: [String!]!
}
type Mutation {
createTopics(input:…

Ignacio
- 331
- 6
- 15
0
votes
1 answer
AWS AppSync list query erring out with 504 in console and code
Given the following schema:
input CreateSurveysInput {
uuid: String!
year: Int!
geocode: AWSJSON!
metadata: AWSJSON!
observations: AWSJSON!
report_url: String
survey_date: String!
video_url: String!
}
input…

studiobrain
- 1,135
- 2
- 13
- 35
0
votes
1 answer
What response format does AppSync expect?
I am new in the AWS and need advice. I have a GraphQL schema described in AppSync. The scheme is simple, it has only one Query called getEmployees. As a Resolver to this query, I use the AWS Lambda function in Python. This AWS Lambda function works…

Nurzhan Nogerbek
- 4,806
- 16
- 87
- 193
0
votes
1 answer
AWS AppSync API graphlQL - synchronous call needed
I have set up a project with the React framework and simply want to show data on a Component. Everything works fine. My only problem is the the asynchronous API.graphQL function from @aws-amplify/api.
I am using a typescript and want to work with…

Henrik Lienstromberg
- 11
- 1
0
votes
1 answer
Automated DynamoDB Database Checks | ReactJS + AWS Amplify
My team and I are working on a Full-Stack Application using ReactJS on the frontend and AWS Amplify on the backend. We are using AWS AppSync to Query data in our DynamoDB tables (through GraphQL Queries), Cognito for User Authentication, and SES to…

Anjali_Iyer
- 9
- 1
- 5
0
votes
1 answer
Error initializing appsync client. invalidAuthConfiguration("AWSCognitoUserPoolsAuthProvider cannot be nil.")
I am using AWS amplify to build the backend of my ios application. I am having an issue initializing appsync client. I have added Auth to the backend and have signed in but I am getting the following error in the console:
CONSOLE:
Error…

johnDoe
- 709
- 11
- 29
0
votes
1 answer
Failed to start API Mock endpoint Error: CloudFormation stack parameter rdsRegion is missing default value
I have added my RDS MySQL datastore to appsync as follows:
hutber@hutber:/var/www/unsal.co.uk$ amplify api add-graphql-datasource
Using datasource: Aurora Serverless, provided by: awscloudformation
? Provide the region in which your cluster is…

Jamie Hutber
- 26,790
- 46
- 179
- 291
0
votes
1 answer
Passing CloudFormation parameters to AppSync Resolver
So I have my CloudFormation template defined to include a Parameters section with several parameters including
Parameters:
DefaultLimit:
Type: Number
I also have a GraphQL API defined in which I am using AppSync PIPELINE resolvers to…

Delvin Defoe
- 91
- 1
- 1
- 6
0
votes
2 answers
How to retrieve the schema.graphql file from @aws-cdk/aws-appsync before deployment
I am using the code-first approach in @aws-cdk/aws-appsync for generating my graphql schema. For Typescript code generation purposes I need a way to retrieve the schema.graphql before deployment (maybe somehow extracting it from the cdk synth…

gombo
- 215
- 1
- 3
- 11
0
votes
1 answer
encoding and decoding base64.in aws appsync resolver
I have a resolver that receives an argument "nextToken" ($ctx.args.nextToken) which will be in base64 string. In the request mapping template, I need to convert nextToken from base64 string into ascii string. I know that Appsync has…

Aimn Blbol
- 907
- 11
- 20
0
votes
2 answers
aws mock api able to query but unable to delete entries
shown below is the graphql Schema.
@auth(rules: [{ allow: owner,operations: [create, delete ] ,ownerField: "user"}])
{
id: ID!
videoKey: String!
videoThumbnailKey :String!
videoTitle:String!
videoDescription:String!
channelName:String!
…

Sudhan Nadar
- 77
- 9
0
votes
1 answer
Aws Amplify Using Multiple Cognito User Pools in One GraphQL Api
I am new in AWS Amplify and I am try to make simple project.
I have two different frontend(react) projects. One of them for blog readers and one of them for editors.For both applications, I want to use same DynamoDB tables(and use graphql api). But…

okan Acer
- 61
- 1
- 9