<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@firebase/firestore](./firestore.md) &gt; [/](./firestore_.md) &gt; [DocumentSnapshot](./firestore_.documentsnapshot.md) &gt; [id](./firestore_.documentsnapshot.id.md)

## DocumentSnapshot.id property

Property of the `DocumentSnapshot` that provides the document's ID.

<b>Signature:</b>

```typescript
get id(): string;
```
