dynamodb-toolbox
Version:
Lightweight and type-safe query builder for DynamoDB and TypeScript.
15 lines (14 loc) • 445 B
JavaScript
import { list } from '../../../../schema/list/index.js';
import { fromSchemaDTO } from './attribute.js';
/**
* @debt feature "handle defaults, links & validators"
*/
export const fromListSchemaDTO = ({ keyDefault, putDefault, updateDefault, keyLink, putLink, updateLink, elements, ...props }) => {
keyDefault;
putDefault;
updateDefault;
keyLink;
putLink;
updateLink;
return list(fromSchemaDTO(elements), props);
};