Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Cypher: Setting multiple properties on a node
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Luanne Coutinho  
View profile  
 More options Oct 12 2012, 6:54 am
From: Luanne Coutinho <luanne.couti...@gmail.com>
Date: Fri, 12 Oct 2012 16:24:46 +0530
Local: Fri, Oct 12 2012 6:54 am
Subject: Cypher: Setting multiple properties on a node

Hi,

I am trying to set multiple properties on a node by passing to the
ExecutionEngine a Map<String, Object>.
The query is: start n=node:companies(id={id}) match
(n)-[old?:parent_company]-(oldParent) set n={props} delete old

The error I get is:

`.' expected but `=' found

What am I missing?
I'm using 1.8

Thanks
Luanne


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Luanne Coutinho  
View profile  
 More options Oct 12 2012, 6:56 am
From: Luanne Coutinho <luanne.couti...@gmail.com>
Date: Fri, 12 Oct 2012 16:26:47 +0530
Local: Fri, Oct 12 2012 6:56 am
Subject: Re: Cypher: Setting multiple properties on a node

Forgot to add the stacktrace:

"start n=node:companies(id={id}) match
(n)-[old?:parent_company]-(oldParent) set n={props} delete old"

^
    at
org.neo4j.cypher.internal.parser.v1_8.CypherParserImpl.parse(CypherParserIm pl.scala:46)
    at org.neo4j.cypher.CypherParser.parse(CypherParser.scala:44)
    at
org.neo4j.cypher.ExecutionEngine$$anonfun$prepare$1.apply(ExecutionEngine.s cala:61)
    at
org.neo4j.cypher.ExecutionEngine$$anonfun$prepare$1.apply(ExecutionEngine.s cala:61)
    at org.neo4j.cypher.internal.LRUCache.getOrElseUpdate(LRUCache.scala:31)
    at org.neo4j.cypher.ExecutionEngine.prepare(ExecutionEngine.scala:61)
    at org.neo4j.cypher.ExecutionEngine.execute(ExecutionEngine.scala:55)
    at org.neo4j.cypher.ExecutionEngine.execute(ExecutionEngine.scala:58)
    at
org.neo4j.cypher.javacompat.ExecutionEngine.execute(ExecutionEngine.java:86 )

On Fri, Oct 12, 2012 at 4:24 PM, Luanne Coutinho
<luanne.couti...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »