buildKeyCondition
buildKeyCondition(
partitionKey,sortKey,where,toField?):object
Defined in: dynamodb/src/lib/dynamodbify.ts:238
Build a KeyConditionExpression from a simple where clause restricted to the partition key (and optionally the sort key). Used in Query operations.
Parameters
Section titled “Parameters”partitionKey
Section titled “partitionKey”string
sortKey
Section titled “sortKey”string | undefined
toField?
Section titled “toField?”(field) => string
Returns
Section titled “Returns”object
filterCondition?
Section titled “filterCondition?”
optionalfilterCondition?:string
keyCondition
Section titled “keyCondition”keyCondition:
string
names:
Record<string,string>
values
Section titled “values”values:
Record<string,AttributeValue>