title: How to insert array of objects in Firestore?
body: <p><a href="https://i.stack.imgur.com/m8Ld4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/m8Ld4.png" alt="enter image description here"></a>I want to insert an array of objects in Firestore? I'm able to add from Firestore console, but doing it from Java it's not working? Here I'm attaching my console snapshot and code is:</p>
  
  <pre><code>val map = HashMap&lt;String, Any&gt;()
      map["one"] = request.records
      dayFormDoc.set(map)
  </code></pre>
  
  <p>Here request.records is an array. </p>