Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete all edges on deleting a document #239

Open
alxxyz opened this issue May 11, 2022 · 2 comments
Open

Delete all edges on deleting a document #239

alxxyz opened this issue May 11, 2022 · 2 comments

Comments

@alxxyz
Copy link

alxxyz commented May 11, 2022

@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");
@rashtao
Copy link
Collaborator

rashtao commented May 12, 2022

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

@aburmeis
Copy link
Contributor

aburmeis commented Aug 2, 2023

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
Projects
None yet
Development

No branches or pull requests

3 participants