Getting Started

Basics

Query Modifiers

.where() .sort()

Query Predicates

.equals() .notEquals() .exists() .notExists() .startsWith() .endsWith() .contains() .greaterThan() .lessThan() .between() .outside()

Query Executors

.read() .first() .last() .count() .sum() .average() .min() .max() .update() .delete()

Login Methods

.exists() .login() .logout()

Instance Methods

.read() .delete()

Instance Login Methods

.login() .logout() .changePassword()

Misc

Back.then() Back.saved() Back.user() Back.eachProperty() Back.eachDescendant() IFile Property LoginResult

Predicates.greaterThan()

Filters the query based on whether the value of the applicable NumberProperty or DateProperty is greater than the specified value.

Employees
	.where(Employee.salary).greaterThan(2000)
	.read(employees =>
	{
		// employees is an array of Employee objects
		// where the salary is greater than $2000.
	});

var date = new Date().setYear(new Date().getYear() - 10);

Companies
	.where(Company.foundingDate).greaterThan(date)
	.read(companies =>
	{
		// companies is an array of Company objects that have
		// a foundingDate more recent than the current date
		// minus 10 years.
	});
	

Method signature (TypeScript)

static greaterThan(value: number);
static greaterThan(value: Date);

Details

value
The number or Date value to match.
returns
An object containing all of the Query Modifiers and Query Executors.

Availability:

This predicate is available when the previous .where() modifier contains a property of one of the following types: