问题
I been trying the following query:
UPDATE #15:1 REMOVE jsonData.contactName
And receive the following
{
"result": [
{
"@type": "d",
"@version": 0,
"value": 1
}
],
"notification": "Query executed in 0.027 sec. Returned 1 record(s)"
}
Which mean been succedd,
Now when i query to check the value i get:
select * from #15:1
{
"result": [
{
"@type": "d",
"@rid": "#15:1",
"@version": 6,
"@class": "TestClass",
"postUrl": "ABC",
"postCategory": "#11:497",
"jsonData": {
"contactName": "JHON"
},
"@fieldTypes": "postCategory=x"
}
],
"notification": "Query executed in 0.023 sec. Returned 1 record(s)"
}
Also it seem that when i save boolean variable into the map, the boolean is casting to string (false => "false").. is there a way to save integers, boolean and string in the same map?
回答1:
See here (example 6).
UPDATE #15:1 REMOVE jsonData = 'contactName'
来源:https://stackoverflow.com/questions/29914549/orientdb-cant-delete-value-from-map