AppSync: support full primary key in mapping template for DynamoDB GetItem
See original GitHub issueCurrently, GetItem
only supports specifying the partition key.
Use Case
Support schemas which have partition and sort keys.
Proposed Solution
Have an object model to describe the primary key.
Other
- 👋 I may be able to implement this feature request
- ⚠️ This feature might incur a breaking change
This is a 🚀 Feature Request
Issue Analytics
- State:
- Created 4 years ago
- Reactions:8
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Resolver mapping template reference for DynamoDB
This section describes the mapping templates for supported DynamoDB operations. GetItem. The GetItem request mapping document lets you tell the AWS AppSync ......
Read more >How to use DynamoDB with AppSync
AppSync supports the full feature set of DynamoDB. You can issue all basic operations (CRUD items, queries, scans, transactions, batching), ...
Read more >appsync dynamodb won't return primary partition key
If I scan/query/filter the table in DynamoDB all is good. Most of the AWS examples use an id: ID! field in the 'get...
Read more >Build a Serverless Data API with AppSync and DynamoDB
I think there is good scope for SAM to support AppSync in the ... a map datatype in DynamoDB and indexed with a...
Read more >How to use single-table DynamoDB design with GraphQL
This video shows how to use single-table DynamoDB design with GraphQL. Single-table is a DynamoDB pattern in which multiple entities for an ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@seanWLawrence absolutely welcome if you want to make a PR!
I think this looks good, just a heads up your original example used union types which is not supported by JSII so
string
should be fine foridArg
. Make sure to mark this as a breaking change in your PR message as well.