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