Tests if a string or an array contains a certain string.

Command Syntax

attr(attribute).contains(operand)

Note: operand must be a string

Usage

const d = new Dynaflo(config);

d.table('Movies')
  .query({year: 2015})
  .where(attr('title').contains('Big')))
  .run()
  .then(data => {
    // returns movies with year = 2015 with title containing the substring 'Big'
  });

AWS Doc Links

Condition Expressions