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 possible to get zero matched items at first operation. How can I implement in javascript resolver to send again a subsequent operation to get all matched items to the limit? In another word, how can I paginate in javascript resolver? Not pagination at Client. Or I have to implement in lamdbda function to get all matched items to the limit?
Is it possible to execute more than one operation in appsync javascript resolver?
134 Views Asked by Manuel Gnerlich At
1
There are 1 best solutions below
Related Questions in AMAZON-DYNAMODB
- Exception while importing data to dynamodb using data pipeline
- DynamoDB .NET - Delete all items from a table
- Querying DynamoDB table by hash and range key
- How to get rows count from Amazon DynamoDB using Lambda AWS
- Calibrating throughput of DynamoDB tables
- Querying DynamoDB with Lambda does nothing
- How do you set up UAT for DynamoDB?
- Error with Data Pipeline backup when I transfer my data from DynamoDb to S3
- What's the difference between BatchGetItem and Query in DynamoDB?
- Querying Dynamo tables with dynamic attributes in Java
- Cannot marshall type class without a custom marshaler or @DynamoDBDocument annotation
- Difference between AmazonDynamoDBClient and DynamoDB classes in their java SDK?
- org/apache/http/util/Args (java.lang.NoClassDefFoundError). Message payload is of type: String
- DynamoDB JsonMarshaller cannot Deserialize List of Object
- search text in dynamodb, break up tables
Related Questions in AWS-APPSYNC
- querying amplify graphql many-to-many relationship
- How do you use RDS MySQL with AWS AppSync
- Failed to start API Mock endpoint Error: CloudFormation stack parameter rdsRegion is missing default value
- AWS Cognito - Resend Verification Link to an User
- Automated DynamoDB Database Checks | ReactJS + AWS Amplify
- Error initializing appsync client. invalidAuthConfiguration("AWSCognitoUserPoolsAuthProvider cannot be nil.")
- Appsync Amplify - using jwt token
- How to use AWS AppSync in one account access DynamoDB in another account?
- AWS Amplify with GraphQL - Defining authentication rules by different types of users
- How to use Cognito for AppSync mutation call (Python)
- Is there a way to give a type as input for a mutation, without using the input type in AppSync?
- AWS AppSync API graphlQL - synchronous call needed
- What response format does AppSync expect?
- How to get the maximum number in DynamoDB column?
- AWS AppSync list query erring out with 504 in console and code
Related Questions in AWS-APPSYNC-RESOLVER
- AppSync DynamoDB types not working for generated create function
- Set-Cookie header not working AWS AppSync
- Is it possible to set the auth type when evaluating resolver code via AppSync?
- "Cannot return null for non-nullable type: 'ID' within parent 'MasterBom' (/queryMasterBomWithin/id)"
- AWS CDK - Appsync Javascript Resolver Validation with DynamoDB datasource
- Appsync how to use [String] inside query
- AWS AppSync not displaying custom error properties with in Lambda Resolver ResponseMappingTemplate
- Access nested body property from HTTP resolver(AppSync)
- AppSync/GraphQL filter nested objects
- How to send JSON data of AWSJSON Type through one AppSync to another Appsync?
- Terraform AWS dependency problem between AppSync resolver and AppSync function
- response mapping template for a javascript resolver
- How to get the unicode of a character in Apache Velocity (VTL)
- AWS AppSync: No option to add Lambda resolver
- AWS::AppSync::Resolver using javascript in CloudFormation .yml fails to build
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You are forced to implement client side logic to meet this use-case. The alternative is to set your limit considerably higher than you need, and discard the items you don't need when returned.
The issue isn't Appsync, but how DynamoDB implements filtering, which I assume is what you are doing. The limit is applied before the FilterExpression, meaning you can get
<=Limitnumber of items. To apply your custom logic for pagination you will need to use a Lambda Resolver.