This topic describes the format of data types supported by EQL.
EQL data type | Description | Related Dgraph data type |
---|---|---|
string | Represents character strings. | mdex:string |
int | Represents a 64-bit integer. See note below on integers. | mdex:long |
double | Represents a floating point number. | mdex:double |
boolean | Represents a Boolean value (TRUE or FALSE) | mdex:boolean |
time | Represents the time of day to a resolution of milliseconds. | mdex:time |
dateTime | Represents a date and time to a resolution of milliseconds. | mdex:dateTime |
duration | Represents a length of time with a resolution of milliseconds. | mdex:duration |
geocode | Represents a latitude and longitude pair. | mdex:geocode |
While Dgraph records support both 32-bit integers (mdex:int data type) and 64-bit integers (mdex:long data type), EQL only supports 64-bit integers. This means that if you query an attribute that has a 32-bit value, it will appear as a long (64-bit value) in EQL results.