Thanks Karol, it worked for me fine.
Sorry for late reply.

-Sukaant Chaudhary


On Tue, Dec 24, 2013 at 2:31 PM, Karol Brejna <[email protected]>wrote:

> I want to *delete Location* and I want to *add City, State, Country* on
>> all the *nodes* having *userId*.
>> What will be the query?
>>
> If I get it right you have some nodes labeled Location. You want to remove
> the label and set three others instead. You want to do this only on nodes
> that have userId property.
>
> If so, then I'd use this query:
> MATCH (n:Location)
> WHERE HAS (n.userId)
> SET n:City:State:Country
> REMOVE n:Location
>
> Regards,
> Karol
>
> --
> You received this message because you are subscribed to the Google Groups
> "Neo4j" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to