.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

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -