<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [git-documentdb](./git-documentdb.md) &gt; [DocMetadata](./git-documentdb.docmetadata.md)

## DocMetadata type

Type for a document metadata

<b>Signature:</b>

```typescript
export declare type DocMetadata = {
    id: string;
    file_sha: string;
    type?: 'json' | 'raw';
};
```

## Remarks

- id: id of a document. (You might be confused. Underscored '\_id' is used only in a [JsonDoc](./git-documentdb.jsondoc.md) type. In other cases, 'id' is used. This is a custom of PouchDB/CouchDB.)

- file\_sha: SHA-1 hash of Git object (40 characters)

- type: Default is 'json'.

