@Ngrx/store: how to query models with relationships
问题 I an Angular 2 app using Redux (with @ngrx/store), I have modeled the store this way: { modelA: { ids: [1, 2], entities: { 1: { name: "name modelA 1" }, 2: { name: "name modelA 2" } } }, modelB: { ids: [5, 8], entities: { 5: { name: "name modelB 5" }, 8: { name: "name modelA 8" }, 9: { name: "name modelA 9" } } } } Basically, I have 2 types of objects: modelA and modelB. This is ok for now. But I can't find which is the best way to write a relationship between then, representing something