key
function key(...parts): string;Builds a DynamoDB key from the given parts by concatenating them with a ’#’ separator. At least one part must be provided, or a DocumentBuilderError will be thrown.
Parameters
Section titled “Parameters”The parts to combine into a key.
Returns
Section titled “Returns”string
The combined key as a string.
Example
Section titled “Example”const key1 = key('USER', 123) // 'USER#123'const key2 = key('METADATA') // 'METADATA'