neo4j - How to construct cypher query for passing parameters in nodejs -


I should be able to create or update a node in neo4j. I am using node js.

I am trying to use the parameter to complete it.

I have to build a cyber query.

  User (email: {props} .email}) Create user = {props} on SET user.created = timestamp () MATCH SET user.lastSeen = timestamp () returns user ' 

I have node outside the query parameter.

  node = {Sahara: {Name: 'Shekhar', email: hashkar@bc.com ',  
 

How do I create a cipher query?

I am trying to build cyber like this ..

  saferrack = 'merge (user: person: user {email:' + node.prop. Mail + '}) Turn on user =' + node.prop + 'SET user.created = timestamp () match set user. Last session = timestamp () returns user ';  

I get this error:

  Error error: invalid input '@': an identifier character, node labels, property map, relationship pattern, (','. ',' [',' = '', IN, IS, '*', '/', '%', '^', '+', '-', '& lt;' 'Merge' (user: person: user {email: ctippur@abc.com}); '& gt; ",", =, ", and, XOR, or,', 'or'} '(line1, column 40) Set user to set user = [object object] Set up on scheduling (set) user. Session = timestamp () returns user    

Do not do this in the first place.

The full support of the cipher for the name is used as part of the query. Parameter Value then performs the map / jason-object query execution

As you used in the first part of your question, you do not know why you renounce in the second part of your question?

  cypherQuery = 'merge ( User: person: using Ta {em Ail: {props} Set .email}) user = {props}, user.created = set match on timestamp () Ughrklistin = timestamp () returns the user; Params = {Sahara: {email: "foo@bar.com", name: "one name"}}  

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -