.net - How can I pass an array parameter using Neo4j.Driver? -
let's have following query executed on neo4j 3.0:
let cmd = """ match (u:user {userid: {userid} }) , (p:permission {permissionid: {permissionid} }) merge (u)-[r:can{ datecreated: {datecreated}, datechanged: {datemodified}, allowed: [{allowed}], denied: [{denied}], createdby: {createdby}, changedby: {modifiedby} }]->(p) return r """
the relationship can
have array property called allowed
.
with code above tried pass "item1,item2"
created single item in array. how can pass items correctly can have multiple items inside array?
the allowed
, denied
values should arrays, , cypher code should changed use values as-is (instead of inside brackets):
... allowed: {allowed}, denied: {denied}, ...
Comments
Post a Comment