のすべてのノード間でプロパティを追加/削除します: '名前'、 '年齢'、年齢:42}CYPHER次の例データと同じラベル
質問:ラベルpersonのすべてのノードでプロパティ['id'、 'name'、 'age'、 'デフォルトの空の値を持つノードに不足しているプロパティが追加され、cypherのみを使用するようにします。
私は次のよう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.
私は場所に
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を持って確認することができますがと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