I would like to create multiple disconnected nodes using a single cypher
query
The documentation says:
Create multiple nodes with a parameter for their properties. By providing
> Cypher an array of maps, it will create a node for each map.
CREATE (n { props })
RETURN n
In the neo4j rest web console I tried (amongst many other things)
CREATE (n [{a:1,b:2}, {a:1,b:2}]) RETURN n
But receive this error
Invalid input '[': expected whitespace, comment, node labels, MapLiteral, a
> parameter, ')' or a relationship pattern (line 1, column 11)
> "CREATE (n [{a:1,b:2}, {a:1,b:2}]) RETURN n"
Is it possible to do what I am trying and if so how?
--
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.