Skip to content

Delete Edges With Item #109

@SoundsSerious

Description

@SoundsSerious

SQLAlchemy has an option to delete relations when you delete an item, that would be a cool feature to have

Currently delete works like this for me:

db.query(Student).filter("LIKE(rec.name, 'test%')", prepend_rec_name=False).delete()

I think a non breaking change would be something like:

db.query(Student).filter("LIKE(rec.name, 'test%')", prepend_rec_name=False).delete(purge_edges=True)

A discussion on modifying AQL for this purpose:
https://stackoverflow.com/questions/35074545/safe-removal-of-vertexes-in-arangodb-using-ids

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions