title: Query inside reducer ? redux
body: <p>How do i write this inside of an reducer to change the state? </p>
  
  <pre><code>doc = {
    id:"zf123ada123ad",
    name:"examp",
    subdoc:{
      name:"subdoc examp",
      subsubdoc:[{
                 id:"zcgsdf123zaar21",
                 subsubsubdoc:[{
                               id:"af2317bh123",
                               value: "heyhey"   //this value I want to update
                              }]
                }]
  }
  }
  </code></pre>
  
  <p>let's say i have an reducer that looks like this
  The action.payload look something like this
  {
  theInputId1: "someId",
  theInputId2: "anotherId",
  theInputValue: "someValue"
  }</p>
  
  <pre><code>export function updateSubSubSubDoc(state = {}, action){
    switch(action.type){
      case 'UPDATE_THE_SUBSUBSUB':
        return {
                 state.doc.subdoc.subsubdoc.find(x =&gt; x.id == 
            theInputId1).subsubsubdoc.find(x =&gt; x.id == theInputId2).value = theInputValue  // just example code for you to understand where i'm going.
               }
  
      default:
        return state
    }
  }
  </code></pre>
  
  <p>What I want to do it update one subsubsub doc in a state that is current</p>