Options
All
  • Public
  • Public/Protected
  • All
Menu

Expression object used in the update resolver to resolve the update into an expression.

Hierarchy

  • Expression

Implemented by

Index

Methods

  • addAdd(value: string): void
  • Append an ADD update expression.

    Parameters

    • value: string

      Expression to add to the ADD array.

    Returns void

  • addDelete(value: string): void
  • Append an DELETE update expression.

    Parameters

    • value: string

      Expression to add to the DELETE array.

    Returns void

  • addPath(path: string): string
  • addRemove(value: string): void
  • Append a REMOVE update expression.

    Parameters

    • value: string

      Expression to add to the REMOVE array.

    Returns void

  • addSet(value: string): void
  • Append a SET update expression.

    Parameters

    • value: string

      Expression to add to the SET array.

    Returns void

  • getExpression(): string | void
  • Helper method to build an UpdateExpression string appending all of the expressions from the lists that are not empty.

    Returns string | void

    UpdateExpression based string.

  • Resolves each key of a map to an Update.Expression.

    Parameters

    • map: ResolverMap

      Map of update values and resolvers to evaluate.

    • Optional name: string

      Name alias of the parent attribute, prepends each key name

    Returns void

  • Helper method used in update methods that do not support string attributes, like add or sub. This then allows string values to act as paths, without having to wrap the path in a resolver. For strings based attributes, like set, need to use the path() function to wrap the path.

    Parameters

    • value: OperandValue<Table.AttributeValues>

      The value, update resolver or path string to add and get back an alias.

    • name: string

      Name used to pass down to the value resolver.

    Returns string

    Alias or expression for value to use in expression.

  • Add value or resolve value function to get back alias or resolved string. To allow the value to reference a path, the value needs to be a resolver.

    Parameters

    Returns string

    Alias or expression for value to use in expression.

Generated using TypeDoc