> For the complete documentation index, see [llms.txt](https://textav.gitbook.io/firebase-react-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://textav.gitbook.io/firebase-react-notes/storage/getting-full-path.md).

# Getting full path

The proper way to get a documents' path:

**From** [**DocumentReference**](https://firebase.google.com/docs/reference/js/firebase.firestore.DocumentReference.html)**:** .path

> e.g. `var path = ref.path`

**From** [**DocumentSnapshot**](https://firebase.google.com/docs/reference/js/firebase.firestore.DocumentSnapshot.html)**:** .ref.path

> e.g. `var path = doc.ref.path`
