TYPE - Type
Returns the type of the given attribute
Details
The type may be any of the following:
- OBJECT
- ARRAY
- NUMBER
- STRING
- BOOL
- NULL
Output
String: The string name of the type
Usage
TYPE()
Examples
Example 1
Input Document
[1,2]
{"doc":1}
1
"String"
true
null
Query
LOAD tmp
AS ('': TYPE(''))
Result
"ARRAY"
"OBJECT"
"NUMBER"
"STRING"
"BOOL"
"NULL"