title: Firestore Array of Document References
body: <p>I have the following structure of my Firestore database:</p>
  
  <pre><code>products:{ // Collection
      procuct_1: { // Document
         title:"",
         url:""
  
  videos:{ // Collection
      video_1:{ // Document
         title:"",
         products:{ // Array of references 
              0: "/products/product_1,
              1: "/products/product_2
  </code></pre>
  
  <p>I would like to be able from Array field in <strong>Videos Collection</strong> to get Document References to <strong>Products collection</strong> in order to get values of some fields of this collection (ex. title of product).</p>
  
  <p>For the moment I use this code:</p>
  
  <pre><code>    FirebaseFirestore firebaseFirestore = FirebaseFirestore.getInstance();
      firebaseFirestore
              .collection("videos")
              .get()
              .addOnCompleteListener(new OnCompleteListener&lt;DocumentSnapshot&gt;() {
                  @Override
                  public void onComplete(@NonNull Task&lt;DocumentSnapshot&gt; task) {
                      if (task.isSuccessful()) {
                          DocumentSnapshot documentSnapshot = task.getResult();
  
                          Map&lt;String, Object&gt; map = documentSnapshot.getData();
                          for (Map.Entry&lt;String, Object&gt; entry: map.entrySet()){
                              if (entry.getKey().equals("products")){
                                 textView.setText(entry.getValue().toString());
                              }
                          }
  </code></pre>
  
  <p>But entry.getValue().toString(), returns me such array:</p>
  
  <pre><code>[com.google.firebase.firestore.DocumentReference@451d5ae8,
  
  com.google.firebase.firestore.DocumentReference@e28cd0c]
  </code></pre>
  
  <p>Any suggestions how I can get any field of Product collection from this Array?</p>