Skip to content

Delete all edges on deleting a document #239

Open

Description

@alxxyz
@Document
public class User {
    @Id
    private String id;
     
    private String name;
}

@Edge
public class Friend {
    @Id
    private String id;

    @From
    private User user1;

    @To
    private User user2;
}

public interface UsersRepository extends ArangoRepository<User, String> {
}

On deleting user to delete also all edges

userRepository.deleteById("some-id");

Activity

  1. rashtao commented on May 12, 2022

    @rashtao
    Member

    This is currently not supported. To work around it you can manually remove the edges with a custom AQL query.

  2. aburmeis commented on Aug 2, 2023

    @aburmeis
    Contributor

    As there may be various edge types related to a document this is not trivial. But this is a feature of Named Graphs!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions