Question

I want delete user and his phones.

 var client = new GraphClient(new Uri("http://10.28.16.199:7474/db/data"));
                client.Connect();
                client.Cypher
                    .Match("(user:User)-[r]->(phone:Phone)")
                    .Where((Users user) => user.Fio == name)
                    .Delete("r,user")
                    .ExecuteWithoutResults();

Its show me error TransactionFailureException: Unable to commit transaction

Was it helpful?

Solution

There are probably other relationships still attached to the user. You need to delete all of them too.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top