的所有節點添加/移除性質按照實施例的數據:暗號 - 跨越同一標籤
節點1:人{ID:1,名稱: '名稱一'}
節點2:人{ID :2,name:'NameTwo',年齡:42}
問題是:如果有可能標準化所有節點的標籤人名列表['id','name','age',' lastname'],以便將缺少的屬性添加到具有默認空值並僅使用密碼的節點中?
我一直在使用apoc.map.merge({first},{second}) yield value
程序捆綁如下:
match (p:Person)
call apoc.map.merge(proeprties(p),{id:'',name:'',age:'',lastname:''}) yield value
return value
但是我得到這個錯誤:
There is no procedure with the name
apoc.map.merge
registered for this database instance. Please ensure you've spelled the procedure name correctly and that the procedure is properly deployed.
雖然我可以確認我有APOC到位
bash-4.3# ls -al /var/lib/neo4j/plugins/apoc-3.1.0.3-all.jar
-rw-r--r-- 1 root root 1319762 Dec 14 02:19 /var/lib/neo4j/plugins/apoc-3.1.0.3-all
和它顯示在apoc.help
neo4j-sh (?)$ call apoc.help("map.merge");
+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| type | name | text | signature | roles | writes |
+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| "function" | "apoc.map.merge" | "apoc.map.merge(first,second) - merges two maps" | "apoc.map.merge(first :: MAP?, second :: MAP?) :: (MAP?)" | <null> | <null> |
| "function" | "apoc.map.mergeList" | "apoc.map.mergeList([{maps}]) yield value - merges all maps in the list into one" | "apoc.map.mergeList(maps :: LIST? OF MAP?) :: (MAP?)" | <null> | <null> |
+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
2 rows
47 ms