UNPKG

@nova-odm/expressions

Version:

Composable expression objects for Amazon DynamoDB

14 lines (13 loc) 616 B
import { AttributePath } from "./AttributePath"; import { ExpressionAttributes } from './ExpressionAttributes'; /** * An array of attributes to project. Each may be represented as * either an AttributePath object or as a string. */ export type ProjectionExpression = Array<AttributePath | string>; /** * Convert the supplied projection expression to the string format * expected by DynamoDB, substituting all attribute paths using the * provided ExpressionAttributes object. */ export declare function serializeProjectionExpression(projection: ProjectionExpression, attributes: ExpressionAttributes): string;