Field types

The following table summarizes Haska data types. Each property in your model should have data field type. for example when your property contains date or times you have to select date or DateString type for your property.

Type

Description

Example

any

Any type, including array, object, Date, or GeoPoint

Any of: true, 123, "foo", [ "one", 2, true ]

array

JSON array

[ “one”, 2, true ]

Boolean

JSON Boolean

true

buffer

new Buffer(42);

date

JavaScript Date object

new Date(“December 17, 2003 03:24:00”);

GeoPoint

LoopBack GeoPoint

new GeoPoint({lat: 10.32424, lng: 5.84978});

DateString

LoopBack DateString

"2000-01-01T00:00:00.000Z""2000-01-01" "2000-01-01 12:00:00"

null

JSON null

null

number

JSON number

422

Object

JSON object or any type

{ “firstName”: “John”, “lastName”: “Smith”, “age”: 25 }

String

JSON string

“flashboard”

pageUI Types

Last updated