Have you tried to set the database to retrieve the "graph" and also the removed item?
It will mark the node as "removed" on the metadata of the node.
You should add that information on the POST request on the following parameter resultDataContents.
The request JSON must contains this:
resultDataContents: ["graph"]
If you read the data using the "row" schema you can set the database to give the response of both, but you need to remember that this will increase the received data. In that case, that parameter should be like this one:
resultDataContents: ["graph","row"]
Example of query:
MATCH (from_user:User),(to_user:User)
WHERE from_user.id = '522fed61e4b0a1f88d599ae0' AND to_user.id = '52b9f410e4b03902bd21629e'
MATCH from_user-[r]->to_user
DELETE r
RETURN r
The possible result would be something like this:
{
"results":[
{
"columns":[
"a"
],
"data":[
{
"row":[
{
}
],
"meta":[
{
"id":999999,
"type":"node",
"deleted":true
}
],
// ...