try this piece of code snippet: -

    node1 = Node("FirstLabel", "SecondLabel",name="MyPythonNode2", 
neo4j_version="2.2")

    resultNodes = graph.create(node1)

    #Iterate Over Tuple and print all the values in the Tuple

    for index in range(len(resultNodes)):

        print("Created Node - ", index, ", ", resultNodes[index])

    

The above piece of code will create a Node with 2 Labels and 2 properties.


Thanks,
Sumit

On Monday, 15 June 2015 22:57:46 UTC+5:30, Shekar Tippur wrote:
>
> Sumit,
>
> I am trying to simulate:
> CREATE (matrix1:Movie { title : 'The Matrix', year : '1999-03-31' })
>
> but what I am getting is
>
> CREATE ( { title : 'The Matrix', year : '1999-03-31' })
>

-- 
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 neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to