I have a function to delete "User" node and return count deleted node, but it always return -1.
func DeleteUser(userid int) (int, error) {
stmt := `
MATCH (u:User) WHERE u.userId = {userid} delete u RETURN count(u) ;
`
params := neoism.Props{"userid": userid}
res := -1
cq := neoism.CypherQuery{
Statement: stmt,
Parameters: params,
Result: &res,
}
err := conn.Cypher(&cq)
return res, err
}