question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AppSync: support full primary key in mapping template for DynamoDB GetItem

See original GitHub issue

Currently, 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:open
  • Created 4 years ago
  • Reactions:8
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
MrArnoldPalmercommented, May 6, 2021

@seanWLawrence absolutely welcome if you want to make a PR!

1reaction
MrArnoldPalmercommented, May 6, 2021

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 for idArg. Make sure to mark this as a breaking change in your PR message as well.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found