I use batch insert for adding nodes using the RESY API I know how to do this before 2.0, but now I'm starting to use the labeled nodes, and I cant get it to work. I don't find how I can add the label to the node.
The documentation is not very clear (to me). http://docs.neo4j.org/chunked/2.0.0-M03/rest-api-node-labels.html
This is the json that send to the API:
Test1:
[{"method":"POST",
"to":"/node",
"body":{"name":"A"},"id":0},
{"method":"POST",
"to":"{0}/labels",
"body":{"label":"user"}
}]
Test2:
[{"method":"POST",
"to":"/node",
"body":{"name":"A"},"id":0},
{"method":"POST",
"to":"/node/{0}/labels",
"body":{"label":"user"}
}]
Test3:
[{"method":"POST",
"to":"/node",
"body":{"name":"A"},"id":0},
"label":"user"
}]
thanks in advance Steven