MCPcopy Create free account
hub / github.com/Parana-Games/tinymo / build

Method build

src/query.ts:21–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19 }
20
21 build(): QueryCommandInput {
22 const base: QueryCommandInput = super.build();
23 if (this.scanIndexForward !== undefined) { base.ScanIndexForward = this.scanIndexForward; }
24 if (!this.keyCondition.isEmpty()) {
25 base.KeyConditionExpression = this.keyCondition.expression;
26 base.ExpressionAttributeNames = { ...base.ExpressionAttributeNames, ...this.keyCondition.names, };
27 base.ExpressionAttributeValues = { ...base.ExpressionAttributeValues, ...this.keyCondition.values, };
28 }
29 return base;
30 }
31}

Callers 1

runMethod · 0.95

Calls 1

isEmptyMethod · 0.45

Tested by

no test coverage detected