UNPKG

dynamodb-toolbox

Version:

Lightweight and type-safe query builder for DynamoDB and TypeScript.

19 lines (18 loc) 637 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.fromSetSchemaDTO = void 0; const index_js_1 = require("../../../../schema/set/index.js"); const attribute_js_1 = require("./attribute.js"); /** * @debt feature "handle defaults, links & validators" */ const fromSetSchemaDTO = ({ keyDefault, putDefault, updateDefault, keyLink, putLink, updateLink, elements, ...props }) => { keyDefault; putDefault; updateDefault; keyLink; putLink; updateLink; return (0, index_js_1.set)((0, attribute_js_1.fromSchemaDTO)(elements), props); }; exports.fromSetSchemaDTO = fromSetSchemaDTO;