title: Mulesoft displaying null values for nested properties in an array (even though it displays those values when i refer to the outer property.)
body: <p>I have an issue reading nested property values.
  I have transformed the inbound message into the following structure - however when i read the inner properties as map it shows them as null.. but if i directly pull the parent in reference I can see the inner values.
  INBOUND payload :</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>    [
    {
      "Name": "C-name1",
      "child": [
        {
          "ProductMessage__r": {
            "ProductMessageText__c": "testvalues",
            "Id": null,
            "type": "ProductMessage__c"
          },
          "Id": null,
          "type": "CallMessage__c",
          "Product__r": {
            "Id": null,
            "type": "Product__c",
            "Name": "stackov"
          }
        },
        {
          "ProductMessage__r": {
            "ProductMessageText__c": "stack overflow",
            "Id": null,
            "type": "ProductMessage__c"
          },
          "Id": null,
          "type": "CallMessage__c",
          "Product__r": {
            "Id": null,
            "type": "Product__c",
            "Name": "stackover"
          }
        }
      ]
    },
    {
      "callName": "C-02436592",
      "child": [
        {
          "ProductMessage__r": {
            "ProductMessageText__c": "stackover flow",
            "Id": null,
            "type": "ProductMessage__c"
          },
          "Id": null,
          "type": "CallMessage__c",
          "Product__r": {
            "Id": null,
            "type": "Product__c",
            "Name": "cooler"
          }
        },
        {
          "ProductMessage__r": {
            "ProductMessageText__c": "vxcvxcvxc",
            "Id": null,
            "type": "ProductMessage__c"
          },
          "Id": null,
          "type": "CallMessage__c",
          "Product__r": {
            "Id": null,
            "type": "Product__c",
            "Name": "Mixtard® 30 IND"
          }
        }
      ]
    }
  ]</code></pre>
  </div>
  </div>
  </p>
  <p>Now in the above payload if i refer to the parent values**(<strong>two, three</strong>)** as following it displays all the values correctly, but if i access the child parameters <strong>(<strong>one, four, five and six</strong>)</strong> :</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>%dw 2.0
  output application/json
  var t = payload.values
  ---
  t map((item,index)-&gt;{
      callname:t[index].callName,
      childprod2: t[index].child map({
      one:    $. product__r.Name, //diplsys null
      two : $,//displays the entire nested values
      three: t[index].child,
      four : $. product__r, // displays null
      five: $. productmessage__r, //null
      six: $. productmessage__r. ProductMessageText__c //null
  
      })
      })</code></pre>
  </div>
  </div>
  </p>
  <p>Here is the output :
  It displayed when outer properties are referred. but when i refer the inner properties it shows them as null:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>[
    {
      "callname": "C-02436590",
      "childprod2": [
        {
          "one": null,
          "two": {
            " ProductMessage__r": {
              " ProductMessageText__c": "stack overflowtestmix",
              "Id": null,
              "type": " ProductMessage__c"
            },
            "Id": null,
            "type": " CallMessage__c",
            " Product__r": {
              "Id": null,
              "type": " Product__c",
              "Name": " stack overflow 30 IND"
            }
          },
          "three": [
            {
              " ProductMessage__r": {
                " ProductMessageText__c": "stack overflowtestmix",
                "Id": null,
                "type": " ProductMessage__c"
              },
              "Id": null,
              "type": " CallMessage__c",
              " Product__r": {
                "Id": null,
                "type": " Product__c",
                "Name": " stack overflow 30 IND"
              }
            },
            {
              " ProductMessage__r": {
                " ProductMessageText__c": "stack overflowtest",
                "Id": null,
                "type": " ProductMessage__c"
              },
              "Id": null,
              "type": " CallMessage__c",
              " Product__r": {
                "Id": null,
                "type": " Product__c",
                "Name": " stack overflow 30 IND"
              }
            },
            {
              " ProductMessage__r": {
                " ProductMessageText__c": "stack overflow stack overflowtest",
                "Id": null,
                "type": " ProductMessage__c"
              },
              "Id": null,
              "type": " CallMessage__c",
              " Product__r": {
                "Id": null,
                "type": " Product__c",
                "Name": " stack overflow 30 IND"
              }
            }
          ],
          "four": null,
          "five": null,
          "six": null
        },
        {
          "one": null,
          "two": {
            " ProductMessage__r": {
              " ProductMessageText__c": "stack overflowtest",
              "Id": null,
              "type": " ProductMessage__c"
            },
            "Id": null,
            "type": " CallMessage__c",
            " Product__r": {
              "Id": null,
              "type": " Product__c",
              "Name": " stack overflow 30 IND"
            }
          },
          "three": [
            {
              " ProductMessage__r": {
                " ProductMessageText__c": "stack overflowtestmix",
                "Id": null,
                "type": " ProductMessage__c"
              },
              "Id": null,
              "type": " CallMessage__c",
              " Product__r": {
                "Id": null,
                "type": " Product__c",
                "Name": " stack overflow 30 IND"
              }
            },
            {
              " ProductMessage__r": {
                " ProductMessageText__c": "stack overflowtest",
                "Id": null,
                "type": " ProductMessage__c"
              },
              "Id": null,
              "type": " CallMessage__c",
              " Product__r": {
                "Id": null,
                "type": " Product__c",
                "Name": " stack overflow 30 IND"
              }
            },
            {
              " ProductMessage__r": {
                " ProductMessageText__c": "stack overflow stack overflowtest",
                "Id": null,
                "type": " ProductMessage__c"
              },
              "Id": null,
              "type": " CallMessage__c",
              " Product__r": {
                "Id": null,
                "type": " Product__c",
                "Name": " stack overflow 30 IND"
              }
            }
          ],
          "four": null,
          "five": null,
          "six": null
        }
      ]
    },
    {
      "callname": "C-02436592",
      "childprod2": [
        {
          "one": null,
          "two": {
            " ProductMessage__r": {
              " ProductMessageText__c": "stack overflowtestmix",
              "Id": null,
              "type": " ProductMessage__c"
            },
            "Id": null,
            "type": " CallMessage__c",
            " Product__r": {
              "Id": null,
              "type": " Product__c",
              "Name": " stack overflow 30 IND"
            }
          },
          "three": [
            {
              " ProductMessage__r": {
                " ProductMessageText__c": "stack overflowtestmix",
                "Id": null,
                "type": " ProductMessage__c"
              },
              "Id": null,
              "type": " CallMessage__c",
              " Product__r": {
                "Id": null,
                "type": " Product__c",
                "Name": " stack overflow 30 IND"
              }
            },
            {
              " ProductMessage__r": {
                " ProductMessageText__c": "stack overflowtest",
                "Id": null,
                "type": " ProductMessage__c"
              },
              "Id": null,
              "type": " CallMessage__c",
              " Product__r": {
                "Id": null,
                "type": " Product__c",
                "Name": " stack overflow 30 IND"
              }
            },
            {
              " ProductMessage__r": {
                " ProductMessageText__c": "stack overflow stack overflowtest",
                "Id": null,
                "type": " ProductMessage__c"
              },
              "Id": null,
              "type": " CallMessage__c",
              " Product__r": {
                "Id": null,
                "type": " Product__c",
                "Name": " stack overflow 30 IND"
              }
            }
          ],
          "four": null,
          "five": null,
          "six": null
        },
        {
          "one": null,
          "two": {
            " ProductMessage__r": {
              " ProductMessageText__c": "stack overflowtest",
              "Id": null,
              "type": " ProductMessage__c"
            },
            "Id": null,
            "type": " CallMessage__c",
            " Product__r": {
              "Id": null,
              "type": " Product__c",
              "Name": " stack overflow 30 IND"
            }
          },
          "three": [
            {
              " ProductMessage__r": {
                " ProductMessageText__c": "stack overflowtestmix",
                "Id": null,
                "type": " ProductMessage__c"
              },
              "Id": null,
              "type": " CallMessage__c",
              " Product__r": {
                "Id": null,
                "type": " Product__c",
                "Name": " stack overflow 30 IND"
              }
            },
            {
              " ProductMessage__r": {
                " ProductMessageText__c": "stack overflowtest",
                "Id": null,
                "type": " ProductMessage__c"
              },
              "Id": null,
              "type": " CallMessage__c",
              " Product__r": {
                "Id": null,
                "type": " Product__c",
                "Name": " stack overflow 30 IND"
              }
            },
            {
              " ProductMessage__r": {
                " ProductMessageText__c": "stack overflow stack overflowtest",
                "Id": null,
                "type": " ProductMessage__c"
              },
              "Id": null,
              "type": " CallMessage__c",
              " Product__r": {
                "Id": null,
                "type": " Product__c",
                "Name": " stack overflow 30 IND"
              }
            }
          ],
          "four": null,
          "five": null,
          "six": null
        }
      ]
    }
    </code></pre>
  </div>
  </div>
  </p>
  <p>The final outcome that i wasnted was that for each call, i have a string of 'product-productmessage, product-productmessage' but even if you just help me access and pull the child values it would be great.</p>