Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • UpdateExpressionBuilder

Index

Methods

Static Private buildDefaultExpression

  • buildDefaultExpression(attributePath: string, namePlaceholder: string, valuePlaceholder: string, attributeNames: object, values: any[], existingValueNames: string[] | undefined, propertyMetadata: PropertyMetadata<any> | undefined, operator: UpdateActionDef): UpdateExpression

Static buildUpdateExpression

  • Will create a condition which can be added to a request using the param object. It will create the expression statement and the attribute names and values.

    Parameters

    • attributePath: string
    • operation: UpdateActionDef
    • values: any[]

      Depending on the operation the amount of values differs

    • existingValueNames: string[] | undefined

      If provided the existing names are used to make sure we have a unique name for the current attributePath

    • metadata: Metadata<any> | undefined

      If provided we use the metadata to define the attribute name and use it to map the given value(s) to attributeValue(s)

    Returns UpdateExpression

Static Private isNoValueAction

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc