Filter(iterationMethod, fieldName, awsName)

A filter handle for model fields. Used to construct filter expressions for iterating DB using query or scan.

new Filter(iterationMethod, fieldName, awsName)

Create a filter for field
Parameters:
Name Type Description
iterationMethod String The iteration method, one of query or scan
fieldName String The field's name.
awsName String The aws name for the field

Methods

filter(operation, value)

Impose a condition on the model field
Parameters:
Name Type Description
operation String See VALID_OPERATIONS
value * The RHS of the condition

lock()

Lock the filter to prevent further modifications