Forum Discussion

peter_ladis's avatar
peter_ladis
New Contributor
8 years ago

How to output an array structure with my single field

I need help outputting the array in my schema

2 Replies

  • dmiller's avatar
    dmiller
    Former Employee

    Can you provide a little more information? What does your schema look like and what do you want the output to look like?

    • peter_ladis's avatar
      peter_ladis
      New Contributor

      Here is my input side in the MAPPER

      $field002

      the target is this

      $distributors

      However when it goes into my mongo tables i need the distributor structure like this where values pop onto the array

      var sample = {

      proprty1:””

      distributors:[“1”,”2”,”3"]

      }
      Thanks,

      Peter Ladis
      LilyPad
      Co-Founder
      813-785-6241
      peter@lilypad.co