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

Back.eachProperty

Returns an array containing each Property defined on the specified constructor, and/or invokes the specified iteration function.

// Can be used to capture an array:
var bunnyProperties = Back.eachProperty(Bunny);
// Or we can specify an iteration function:
Back.eachProperty(Bunny, bunnyProp =>
{
	bunnyProp instanceof Property; // true
});
// An instance can also be passed in instead of a constructor:
var b = new Bunny();

Back.eachProperty(b, bunnyProp =>
{
	bunnyProp instanceof Property; // true
});

Property signature (TypeScript)

eachProperty(ctor: new() => Instance, propertyFn?: (p: Property) => void): Property[];
eachProperty(obj: Instance, propertyFn?: (p: Property) => void): Property[];

Details

ctor or obj
The constructor (or an instance of the constructor) whose properties will be return and/or iterated through.
propertyFn
An optional iterator function to call for every Property defined on the constructor.
returns
An array of Property objects defined on the constructor..