Variable
Static Public Summary | ||
public |
|
|
public |
buildAction: * |
|
public |
|
|
public |
|
|
public |
buildUpdateExpression(args: object, fn(attrName,: function): object: * Builds an UpdateExpression to use in 'params' using only the provided item fields. |
|
public |
ddb: * |
|
public |
ddbClient: * |
|
public |
|
|
public |
iterateArrayOverPromise(arr: Array, fn: Function, chained: Boolean): * Iterates a promise over each element of the array If chaining is true, the resolved value is passed on to the promise of the following iteration |
|
public |
sha256: * |
Static Public
public buildAssociationTableName: * source
import {buildAssociationTableName} from 'pyrope/lib/utils.js'
public buildUpdateExpression(args: object, fn(attrName,: function): object: * source
import {buildUpdateExpression} from 'pyrope/lib/utils.js'
Builds an UpdateExpression to use in 'params' using only the provided item fields.
It makes the assumption that the HASH key is 'uuid' (and is excluded) and that every updated model has the attribute 'updatedAt'
Return:
object | An object to be merged in params, in the form {UpdateExpression, ExpressionAttributeNames, ExpressionAttributeValues} |
public iterateArrayOverPromise(arr: Array, fn: Function, chained: Boolean): * source
import {iterateArrayOverPromise} from 'pyrope/lib/utils.js'
Iterates a promise over each element of the array If chaining is true, the resolved value is passed on to the promise of the following iteration
Promise should have the signature (arg, prev) Where arg is the current iterated item from the array and prev is the previously resolved value.