Example request
POST http://localhost:7474/db/data/batchAccept: application/jsonContent-Type: application/json[ { "method" : "POST", "to" : "/node", "id" : 0, "body" : { "name" : "bob" }}, { "method" : "POST", "to" : "/node", "id" : 1, "body" : { "age" : 12 }}, { "method" : "POST", "to" : "{0}/relationships", "id" : 3, "body" : { "to" : "{1}", "data" : { "since" : "2010" }, "type" : "KNOWS" }}, { "method" : "POST", "to" : "/index/relationship/my_rels", "id" : 3, "body" : { "key" : "since", "value" : "2010", "uri" : "{3}" }} ]If you execute this query, you do not receive an exception for a duplicated operation id. The query does not pass and the database is not affected by the changes. BUT ! You receive a 200 status code and full representations of the "not" created nodes. you just get a 404 for the relation query. I think it should rather return a 404 response code and do not return the nodes representations. Here the full response : ,"outgoing_relationships":"http://192.168.43.29:7474/db/data/node/649321/relationships/out","traverse":"http://192.168.43.29:7474/db/data/node/649321/traverse/{returnType}","all_typed_relationships":"http://192.168.43.29:7474/db/data/node/649321/relationships/all/{-list|&|types}","property":"http://192.168.43.29:7474/db/data/node/649321/properties/{key}","all_relationships":"http://192.168.43.29:7474/db/data/node/649321/relationships/all","self":"http://192.168.43.29:7474/db/data/node/649321","properties":"http://192.168.43.29:7474/db/data/node/649321/properties","outgoing_typed_relationships":"http://192.168.43.29:7474/db/data/node/649321/relationships/out/{-list|&|types}","incoming_relationships":"http://192.168.43.29:7474/db/data/node/649321/relationships/in","incoming_typed_relationships":"http://192.168.43.29:7474/db/data/node/649321/relationships/in/{-list|&|types}","create_relationship":"http://192.168.43.29:7474/db/data/node/649321/relationships","data":{"_id":"50192ece61312","name":"some 50192ece61309 name"}},"location":"http://192.168.43.29:7474/db/data/node/649321","status":201},{"id":5,"from":"http://192.168.43.29:7474/db/data/relationship/12231/relationships","body":null,"status":404} Regards, Christophe |