ReallySmallSoftware / cordova-plugin-firestore

A Google Firebase Firestore plugin to enable realtime synchronisation between app and cloud and automatically handle limited connectivity.
Other
22 stars 10 forks source link

How do I get any info about document reference stored in the object? #21

Open ilsaha opened 4 years ago

ilsaha commented 4 years ago

I'm not sure if that's an issue or just lacking of documentation about this case. Sorry for not keeping the question in the pattern, but i'm really lacking any time and need to deliver my software in really short terms.

So, i'm using a lot of DocumentReferences in my Firestore and by now I have been using AngularFire library for the database. But now it's not really useful for me, so now I need to understand how do I get any info (at least an id) about DocumentReferences stored in the objects of my collection docs. At the moment I can see my reference as com.google.firebase.firestore.DocumentReference@ab15db84 which doesn't help me at all. I don't see any description on how do I use this. Also i was using DocumentReferences for my queries to get docs based on it. Please reply me as soon as possible! Thanks in advance!