@env0/dynamo-easy
Version:
DynamoDB client for NodeJS and browser with a fluent api to build requests. We take care of the type mapping between JS and DynamoDB, customizable trough typescript decorators.
13 lines • 510 B
JavaScript
import { getTableName } from '../get-table-name.function';
import { BaseRequest } from './base.request';
/**
* abstract class for all requests types that operate on exactly one dynamo table.
* basically just sets the TableName info on input params.
*/
export class StandardRequest extends BaseRequest {
constructor(dynamoDBWrapper, modelClazz) {
super(dynamoDBWrapper, modelClazz);
this.params.TableName = getTableName(this.metadata);
}
}
//# sourceMappingURL=standard.request.js.map