aws / aws/aws-appsync-community

AppSync VTL "hasCustomPartitionKey" Not Working

Open
#217 0 comments 0 reactions 0 assignees View on GitHub
pending triage
Dominant language
HTML
Stars
507
Forks
37
PR merge metrics
No merged PRs in 30d

Description

I've added hasCustomPartitionKey to a putItem resolver with a data source configured with sync. However, I'm getting the following TemplateMapping error message: "Unsupported element '$[hasCustomPartitionKey]'."

This is the operation:

{
"version": "2018-05-29",
"operation": "PutItem",
"_version": 1,
"key": $util.toJson($modelObjectKey),
"hasCustomPartitionKey": true,
"attributeValues": $util.dynamodb.toMapValuesJson($ctx.args.input),
"condition": $util.toJson($condition)
}

Am I doing something wrong here ?

Contributor guide

Open the contributing guide

Research direction

Start with the AWS AppSync VTL PutItem resolver documentation and the shown operation, focusing on hasCustomPartitionKey with a sync data source. Verify the accepted operation fields and reproduce the TemplateMapping error; done means identifying whether the field is supported and recording the required resolver change or documentation.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.