I have a collection like bellow:
db.collection("col1/doc1/col2/doc2/col3/doc3/col4").get();
Now I have to get all collection collection2 and collection4
With my current know knowledge I have to get them separately like bellow:
db.collection("col1/doc1/col2").get();
and
db.collection("col1/doc1/col2/doc2/col3/doc3/col4").get();
My expectation is I want to call it at once with collection2
db.collection("col1/doc1/col2").get().then(snapshot=>{
//here something like snapshot.col3.col4
});
Is it possible like snapshot.col3.col4
?
Why I want like this ?
Because I will not have to call it more than one time from server, may it increase performance and make it faster.