# CompareDocumentResult

**Kind:** Interface

**Source:** [`atloria-monorepo/apps/api/src/document/dto/compare-document.dto.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/apps/api/src/document/dto/compare-document.dto.ts#L74)

Comparison result response

## Properties

| Property | Type |
|---|---|
| `from` | `{
    id: string;
    version?: number;
    title: string;
    content: string;
    createdAt: Date;
    createdBy: {
      id: string;
      name: string;
      email: string;
    };
    metadata?: any;
  }` |
| `to` | `{
    id: string;
    version?: number;
    title: string;
    content: string;
    createdAt: Date;
    createdBy: {
      id: string;
      name: string;
      email: string;
    };
    metadata?: any;
  }` |
| `diff` | `{
    title: {
      changed: boolean;
      from: string;
      to: string;
    };
    content: DiffChange[];
    metadata: MetadataDiff[];
    stats: {
      additions: number;
      deletions: number;
      modifications: number;
    };
  }` |
