Questions tagged [aws-appsync-resolver]
69 questions
0
votes
1 answer
Is it possible to execute more than one operation in appsync javascript resolver?
I want to send a query with filterexpression and limit in javascript resolver to DynamoDB . DynamoDB returns the matching values up to the limit, and a key in LastEvaluatedKey to apply in a subsequent operation to continue the operation. It is…

Manuel Gnerlich
- 55
- 1
- 7
0
votes
1 answer
Way to sort by createdAt in AWS DynamoDB in conjunction with ApolloClient/React, WITHOUT AWS Amplify
I am having trouble sorting my DynamoDB database by createdAt
I am working from the AWS console. I’m using AWS AppSync and DynamoDB for the back-end, and React and Apollo Client for the front-end. I’m not using AWS Amplify (company policy)
My…
0
votes
0 answers
Testing AWS AppSync Resolver Error functions
I have been following https://docs.aws.amazon.com/appsync/latest/devguide/test-debug-resolvers-js.html to write unit tests for my AppSync functions and resolvers. Everything works well until I try to test the error states. My code is as…

stephenjgray
- 15
- 1
- 6
0
votes
1 answer
How can I bundle Typescript AppSync resolvers in the CDK?
AppSync GraphQL resolvers can be written in JavaScript instead of VTL. AppSync has dev-time helpers for TypeScript resolvers, but we must bundle the code ourselves.
How can I bundle .ts resolvers in the CDK?
We pass the resolver code to the CDK…

fedonev
- 20,327
- 2
- 25
- 34
0
votes
0 answers
How can AWS AppSync subscription lambda resolvers return initial data to the client?
I have a subscription that is triggered by a mutation. When the mutation is fired the updated data gets (somehow) passed to the subscription and the client gets notified.
How, using a Lambda Datasource/Resolver, can the subscription return an…

mystride
- 75
- 6
0
votes
0 answers
How to retrieve (double) nested properties in AppSync
I'm trying to figure out how I can retrieve properties which are deeply nested in AppSync. I currently have defined the dailyEnergyUsage to retrieve these levels in a lambda resolver.
Consider the following schema I'm currently using:
query…

Stefan Gies
- 318
- 4
- 18
0
votes
1 answer
Trying to remove item from a list in AWS AppSync in VTL
I am trying to make a custom resolver in VTL that will remove a certain string from a dynamodb list. I was trying to use $util.list.copyAndRemoveAll to remove the friend from the list. But I am not quite sure how to use it and the documentation…

Alex Tsang
- 3
- 2
0
votes
0 answers
AppSync functionality - store data retrieved
i'm fairly new to AWS and all its services.
I'm looking for a low code solution to get data from an external HTTP api (RapidAPI) and store the JSON data (overwrite, update etc) into a corresponding AWS DB (probably Dynamo for my sins)
Is this doable…

Bully82
- 11
- 3
0
votes
0 answers
CDK App Sync GraphqlApi Subscription Filtering Extension
I have an App Sync GraphQLAPI with a bunch of lambda data sources. One of these lambdas handles a mutation that stores chat messages for a chat room. I need to create a subscription on that mutation for other users in the chat room so that they will…

Przemek Lach
- 1,348
- 2
- 19
- 42
0
votes
1 answer
how to extract my appsync resolver from my sam template
I'm implementing substacks in my AWS serverless app, I would like to know if there is a way to extract the from my template of appsync resolvers the content that is in the field RequestMappingTemplate, and my ResponseMappingTemplate
currently the…

WhiteAB
- 162
- 3
- 11
0
votes
0 answers
AWS AppSync Mapping Template DynamoDB Query doesn't work
I'm using AWS CDK version 2.64.0 to configure AWS AppSync to setup my GraphQL API.
I created my graphql.schema with the following configuration:
type message {
id_message: String!
id_collection: String!
id_user: String!
created_at:…

chicco.caste21
- 345
- 2
- 13
0
votes
1 answer
For what use cases are AppSync pipeline resolvers better then express step functions?
I am currently creating a AppSync API and after figuring out that I can use step functions as a resolver I was wondering why I would ever use a pipeline resolver?
Pipeline resolvers are significantly more complex and unwieldy to construct and…

Mercury
- 594
- 1
- 12
- 28
0
votes
0 answers
Aws-appSync Resolver mapping templte getting sliced data
Currently my data return from graphql query is in format and have 1200 questions from my http data source and want to return only first 10 through graphl in response mapping template.
{
"data": {
"questions":[
{
…
0
votes
1 answer
How to get the unicode of a character in Apache Velocity (VTL)
Im trying to obtain the Unicode(code) of a character in VTL.
For example I would like to get the number 902 from the character Ά
The analogue in JS would be:
'Ά'.charCodeAt(0)
902
Similarly the char code of a blank space would be 32:
'…

Hairi
- 3,318
- 2
- 29
- 68
0
votes
0 answers
Terraform AWS dependency problem between AppSync resolver and AppSync function
When I will create the AppSync resolver with linked function by the terraform, everything is created and it works.
But error will arise, If I will rename the function in terraform file, which is linked to some resolver and then I execute terraform…

klaucode
- 180
- 1
- 10