title: Normalizr with Redux with nested array of objects
body: <p>I'm just getting started with using normalizr with Redux, and I can't make it work. <em>Even though I can do it with plain JavaScript.</em></p>
  <p>I have an array of objects</p>
  <pre><code>const data = [
    {
      data_detail: [
        {
          category: 'newCategory',
          _id: '123',
        },
      ],
      _id: 'abc_id',
      customer: {
        _id: '456',
        email: 'hello@gmail.com',
        name: 'Bob',
      },
      date: '2021-01-10T01:51:24.387Z',
    },
  ];
  </code></pre>
  <p>And I need to transform it to</p>
  <pre><code>const normalizedResponse = {
    customers: {
      '456': {
        _id: '456',
        email: 'hello@gmail.com',
        name: 'Bob',
      },
    },
    details: {
      '123': {
        category: 'newCategory',
        _id: '123',
      },
    },
    orders: {
     'abc_id: {
        order_detail: [123],
        _id: 'abc_id',
        customer: '456',
        date: '2021-01-10T01:51:24.387Z',
      },
    },
  };
  </code></pre>
  <p>Step 1: Display just <code>orders</code></p>
  <p>What I do:</p>
  <pre><code>const userSchema = new schema.Entity(
    'orders',
    );
  
  const userListSchema = new schema.Array(userSchema);
  
  
  const normalizedData = normalize(data, userListSchema);
  </code></pre>
  <p>What I get</p>
  <pre><code>{
    &quot;entities&quot;: {
      &quot;orders&quot;: {
        &quot;abc_id&quot;: {
          &quot;data_detail&quot;: [
            {
              &quot;category&quot;: &quot;newCategory&quot;,
              &quot;id&quot;: &quot;123&quot;
            }
          ],
          &quot;id&quot;: &quot;abc_id&quot;,
          &quot;customer&quot;: {
            &quot;id&quot;: &quot;456&quot;,
            &quot;email&quot;: &quot;hello@gmail.com&quot;,
            &quot;name&quot;: &quot;Bob&quot;
          },
          &quot;date&quot;: &quot;2021-01-10T01:51:24.387Z&quot;
        },
        &quot;abc_id-02&quot;: {
          &quot;data_detail&quot;: [
            {
              &quot;category&quot;: &quot;newCategory1&quot;,
              &quot;id&quot;: &quot;123-02&quot;
            }
          ],
          &quot;id&quot;: &quot;abc_id-02&quot;,
          &quot;customer&quot;: {
            &quot;id&quot;: &quot;456-02&quot;,
            &quot;email&quot;: &quot;hello@gmail.com&quot;,
            &quot;name&quot;: &quot;Bob&quot;
          },
          &quot;date&quot;: &quot;2001-01-10T01:51:24.387Z&quot;
        }
      }
    },
    &quot;result&quot;: [
      &quot;abc_id&quot;,
      &quot;abc_id-02&quot;
    ]
  }
  </code></pre>
  <p>What I'm trying to get:</p>
  <pre><code> orders: {
     'abc_id: {
        order_detail: [123],
        _id: 'abc_id',
        customer: '456',
        date: '2021-01-10T01:51:24.387Z',
      },
    },
  </code></pre>
  <p><em>The question:</em> How to remove some fields from orders and add new ones?</p>