Hi,
Try the following query:
MERGE (user:User{name:"XYZ", email:"[email protected]"})
ON CREATE SET user.created = timestamp()
ON MATCH SET user.lastSeen = timestamp()
RETURN user;
Hope this will help !
-Sukaant Chaudhary
<http://in.linkedin.com/pub/sukaant-chaudhary/33/ba8/479>
On Tue, Mar 24, 2015 at 12:45 PM, Innovify Agile <[email protected]>
wrote:
> Hi all,
>
> I am working on store facebook data (User details, Likes , Posts, comments
> , friends , Family , Events) into neo4j database.
> For that we are first getting data from facebook APIs then storing data
> into neo4j.
>
> Here i have attached graph as well.
>
> Now my problem is how can i check node is exist or not if exist then
> update property and not then create not with property and relationship
> using batch cypher.
>
> Thanks
>
>
> --
> 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/d/optout.
>
--
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/d/optout.