Tests if an attribute is less than or equal to the given value.

Command Syntax

attr(attribute).le(value)

Usage

import Dynaflo from 'dynaflo';
const d = new Dynaflo(config);

d.table('Movies')
  .query({genre: 'action'})
  .where(attr('year').le(2015)))
  .run()
  .then(data => {
    // returns all action movies made in or before 2015
  });

AWS Doc Links

Condition Expressions