Reputation: 4450
DocumentSnapshot
id can be fetched by this documentSnapshot.documentID
. Similarly is there any way to get DocumentReference
from DocumentSnapshot
?
Upvotes: 1
Views: 363
Reputation: 317372
You can use its ref property. I discovered this using the API documentation for DocumentSnapshot.
Upvotes: 1