pouchdb-community / relational-pouch

Store relational data in PouchDB/CouchDB
Apache License 2.0
405 stars 68 forks source link

Is relational-pouch support cascading delete ? #82

Open Prabuganesan opened 7 years ago

Prabuganesan commented 7 years ago

If I delete parent document then all child documents also delete. It is possible?

fransyozef commented 6 years ago

Any thoughts on this?

Prabuganesan commented 6 years ago

Still no.....

broerse commented 6 years ago

You can now do it from ember-data with ember-data-cascade-delete. If there is a JSONAPI cascading delete we can perhaps move cascading delete to the ember-pouch adapter or all the way down to relational-pouch. I am not sure what the most logical place for cascading delete is. The data layer above relational-pouch must know about this special delete behavior.