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

instance.login()

Logs in a newly created User instance. This method differs from the .login() method defined on the constructor, which logs in an existing user. Only available when the constructor has at least one authentication method enabled in the editor.

var employee = new Employee();
employee.email = "employee@company.com";

employee.login("password", (result, employee) =>
{
	// We're now authenticated as the new employee object.
});

Method signature (TypeScript)

login(password: string, completeFn: (result: LoginResult, user: this) => void)

Details

password
A string containing the password to assign to the new user.
completeFn
An optional function to invoke after the object has been read into memory. The parameter passed to the function is a reference to the loaded object.
returns
void