title: how to set data to firebase map object
body: <p>I have a firebase map object and i need to insert arrays inside </p>
  
  <p>I am trying to use update function but it doesn't work </p>
  
  <pre><code>dialogRef.afterClosed().subscribe(result =&gt; {
    console.log(result);
  
    const arrayname = result.name;
    const fireupdate = this.af.list('/users/' + this.Uid + '/items').update(arrayname, result);
  }); 
  </code></pre>
  
  <p>this is how the result array looks like</p>
  
  <pre><code>{name: "item", price: 25, desc: "a simple item"}
  </code></pre>
  
  <p>I don't get anything in the firebase
  <img src="https://i.stack.imgur.com/teHfF.png" alt="here is my firebase structure"></p>