redux reselect selectors for relational data
<p>selectors takes 2 arguments, state and props, but how can we handle selectors for relational data ?</p>

<pre><code>initialState = {
  department  :{ids:[1],byId:{name:'dep 1',id:1,parent:null}}
  sections    :{ids:[2],byId:{name:'section 1.1',id:2,parent:1}}
  subsections :{ids:[3],byId:{name:'subsection 1.1.1',id:3,parent:2}}
}
</code></pre>

<p>here department is aparent of n(sections) and grandparent of n(subsections)</p>

<p>in <code>&lt;Department id="1" /&gt;</code> i want to select department 1 and all its children.</p>

<p>how can i write such selector without passing the id of the department i need to the selector ?</p>