UNPKG

dynamodb-toolbox

Version:

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

9 lines (8 loc) 324 B
import { pathTokens, refOrValueTokens } from './utils.js'; export const expressGetUpdate = (value, path, state) => { let setExpression = pathTokens(path, 's', state); setExpression += ' = '; setExpression += refOrValueTokens(value, 's', state); state.setExpressions.push(setExpression); return state; };