Replies: 1 comment 1 reply
-
|
Thanks @zirkelc! The |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
for testing purposes I need to query items created by ElectroDB via the AWS SDK. That means I have to convert an item to the respective keys of a primary or secondary index. Currently, this
conversions.byAccessPattern.records.fromComposite.toKeys(item)returns all index fields of the table indexpk/skand the secondary indexgs1pk/gs1sk.Output:
I would like to suggest an option to only return the secondary index fields
gs1pk/gs1sk, maybe something like:conversions.byAccessPattern.records.fromComposite.toKeys(item, { fields: 'all' | 'index' | 'pk' | 'sk' })wherefields: 'all'returns the all fields like it is nowfields: 'index'returns only the fields from the selected indexbyAccessPattern.recordslikegsi1pk/gsi1skfields: 'pk' | 'sk'only returns the actualgsi1pk/gsi1skas object or even as stringBeta Was this translation helpful? Give feedback.
All reactions