Primitive models
Simple types used to represent common constructs such as integer numbers, boolean values and text strings.
uint32
uint32 is the set of all unsigned 32-bit integers. Range: 0 through 4294967295.
Example:
Query:
e.data(m.uint32())
Result:
{
"uint32": {}
}
Notes:
creates an uint32 model
Example:
Query:
e.data(d.uint32(4294967295))
Result:
4294967295
Notes:
creates an uint32 value
uint64
uint64 is the set of all unsigned 64-bit integers. Range: 0 through 18446744073709551615.
Example:
Query:
e.data(m.uint64())
Result:
{
"uint64": {}
}
Notes:
creates an uint64 model
Example:
Query:
e.data(d.uint64(1844674407370955))
Result:
1844674407370955
Notes:
creates an uint64 value
int32
int32 is the set of all signed 32-bit integers. Range: -2147483648 through 2147483647.
Example:
Query:
e.data(m.int32())
Result:
{
"int32": {}
}
Notes:
creates an int32 model
Example:
Query:
e.data(d.int32(2147483647))
Result:
2147483647
Notes:
creates an int32 value
int16
int16 is the set of all signed 16-bit integers. Range: -32768 through 32767.
Example:
Query:
e.data(m.int16())
Result:
{
"int16": {}
}
Notes:
creates an int16 model
Example:
Query:
e.data(d.int16(32767))
Result:
32767
Notes:
creates an int16 value
uint16
uint16 is the set of all unsigned 16-bit integers. Range: 0 through 65535.
Example:
Query:
e.data(m.uint16())
Result:
{
"uint16": {}
}
Notes:
creates an uint16 model
Example:
Query:
e.data(d.uint16(65535))
Result:
65535
Notes:
creates an uint16 value
uint8
uint8 is the set of all unsigned 8-bit integers. Range: 0 through 255.
Example:
Query:
e.data(m.uint8())
Result:
{
"uint8": {}
}
Notes:
creates an uint8 model
Example:
Query:
e.data(d.uint8(255))
Result:
255
Notes:
creates an uint8 value
int64
int64 is the set of all signed 64-bit integers. Range: -9223372036854775808 through 9223372036854775807.
Example:
Query:
e.data(m.int64())
Result:
{
"int64": {}
}
Notes:
creates an int64 model
Example:
Query:
e.data(d.int64(9007199254740991))
Result:
9007199254740991
Notes:
creates an int64 value
string
A string model defines the set of all values of type string.
Example:
Query:
e.data(m.string())
Result:
{
"string": {}
}
Notes:
A string model
Example:
Query:
e.data(d.string("àèöäü😀🐱"))
Result:
"àèöäü😀🐱"
Notes:
A string value
bool
A bool model defines the two possible values of boolean type: true
and false
.
Example:
Query:
e.data(m.bool())
Result:
{
"bool": {}
}
Notes:
A bool model
Example:
Query:
e.data(d.bool(true))
Result:
true
Notes:
A bool value
float
A float model defines the set of all values of 64-bit wide IEEE-754 float type.
Example:
Query:
e.data(m.float())
Result:
{
"float": {}
}
Notes:
A float model
Example:
Query:
e.data(d.float(-0.00099999))
Result:
-0.00099999
Notes:
A float value
dateTime
A dateTime model defines the set of all values representing a moment in time in the rfc 3339 format
Example:
Query:
e.data(m.dateTime())
Result:
{
"dateTime": {}
}
Notes:
A dateTime model
Example:
Query:
e.data({- dateTime: "2017-01-01T00:00:00.000Z",
})
Result:
"2017-01-01T00:00:00Z"
Notes:
A dateTime value