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

Executors.count()

Executes the query, returning the number of object that match.

// With no filters:
Employees.count(num =>
{
	// num is the number of stored employees.
});
// With a filter:
Employees
	.where(Employee.name).equals("Paul")
	.count(num =>
	{
		// num is the number of stored employees named "Paul".
	});

Method signature (TypeScript)

static count(resultFn: (num: number) => void): void;

Details

resultFn
The function that will be called when the query has returned. A number is passed to the first parameter being number of objects that match the query.
returns
void