0
I am having trouble verifying the existence of a collection. I am using the following code to perform this function:
FirebaseFirestore.getInstance().collection("ID da COLEÇÃO").document("ID do DOCUMENTO").collection("ID da SUB-COLEÇÃO").get().addOnSucessLi.... & addOnFailureLi.....
My intention is to know if the collection "SUB-COLLECTION ID" exists to enter addOnSusse... and if it does not exist then enter addOnFailu...
However, even though there is no "SUB-COLLECTION ID", addOnSuces... is being called.