509dave16 / ionicPouchDB

Repository for playing with PouchDB in Ionic
MIT License
0 stars 1 forks source link

Abstract RelationsManager from Doc Syntax #31

Open 509dave16 opened 6 years ago

509dave16 commented 6 years ago

We want the relations manager to be unware of what its' working with. Only that it works through the Mediator to fetch things in order to set things up. Likewise the DataRelations is abstract. So we implement DependentDocRelations and ParentDocRelations. The relationsManager is unware of how these operator. It only needs to think of things as DataDescriptors. These could be used anywhere. They just need to have a type and id. We also need to have Descriptors that are more abstract.