dynamodb-toolbox
Version:
Lightweight and type-safe query builder for DynamoDB and TypeScript.
16 lines (15 loc) • 516 B
JavaScript
import { SchemaAction } from '../../../schema/index.js';
import { expressPaths } from './expressPaths.js';
import { transformPaths } from './transformPaths.js';
export class PathParser extends SchemaAction {
static express(paths) {
return expressPaths(paths);
}
transform(paths, options) {
return transformPaths(this.schema, paths, options);
}
parse(paths, options) {
return PathParser.express(this.transform(paths, options));
}
}
PathParser.actionName = 'parsePath';