How to get an Array of Objects from Firestore

前端 未结 2 1901
悲哀的现实
悲哀的现实 2021-01-18 04:07

What would be the right way to query a field that is an array of maps.

Currently the structure is

Collection1
     Document1
         -papers:               


        
2条回答
  •  心在旅途
    2021-01-18 05:04

    ArrayList> arrayInTheDocument = (ArrayList> ) documentSnapshot.getData().get("documentName.ArrayName");

提交回复
热议问题