orientDB cant delete value from map

耗尽温柔 提交于 2020-01-17 06:17:43

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!