-
Notifications
You must be signed in to change notification settings - Fork 116
Property Data Types
Rexster allows manipulation of property values on Vertex
and Edge
objects. By default, these values are assumed to be string data types, but the Rexster API allows the the following data types to be set and allows for a calling client to get any results with their associated data types for proper deserialization.
Getting Results with Data Types
Getting results with data types attached is accomplished through the show_types
parameter. This value is set to false
by default, but when set to true
will wrap property results in a JSON object construct showing data type and the value.
http://localhost:8182/gratefulgraph/vertices/337?show_types=true
```js
{
“version”:“0.1-SNAPSHOT”,
“results”:{
“_type”:“vertex”,
“_id”:{"type":“string”,“value”:"337"},
“keystring”:{"type":“string”,“value”:"123"},
“keymap”:{"type":“map”,“value”:{"propertyb":{"type":“integer”,value,“propertya”:{"type":“integer”,value,
“name”:{"type":“string”,“value”:“CHINESE BONES”},
“song_type”:{"type":“string”,“value”:"cover"},
“performances”:{"type":“integer”,value,
“keylist”:{"type":“list”,“value”:[{"type":“integer”,value“type”:“integer”,value“type”:“string”,“value”:“(i,300”}]},
“type”:{"type":“string”,“value”:"song"},
“keytyped”:{"type":“integer”,value,
query_time
}