---
schema_version: "1"
id: 4fac5cc920841dbdacb9cc105d368c9ec1a4882db0b39af4ab1bcb89aa6ef313
title: Diff Types (dw::util::Diff)
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/latest/dw-diff-types.md
canonical_url: https://docs.mulesoft.com/dataweave/latest/dw-diff-types
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 79ae164c8f2be300f8f015dd288fc545b1b6a4110fab5dd16669a5d6be37550a
description: MuleSoft Documentation Site
release: "2.13"
latest: true
---
---
product: DataWeave
version: 2.13
is-latest-version: true
---

# Diff Types (dw::util::Diff)

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

<table><colgroup><col> <col> <col></colgroup><thead><tr><th>Type</th><th>Definition</th><th>Description</th></tr></thead><tbody><tr><td><p>Diff</p></td><td><div><div><p><code>type Diff = { matches: Boolean, diffs: Array&lt;Difference&gt; }</code></p></div></div></td><td><div><div><p>Describes the entire difference between two values.</p></div><div><ul><li><p><em>Example with no differences:</em> <code>{ "matches": true, "diffs": [ ] }</code></p></li><li><p><em>Example with differences:</em> <code>{ "matches": true, "diffs": [ "expected": "4", "actual": "2", "path": "(root).a.@.d" ] }</code></p></li></ul></div><div><p>See the <code>diff</code> function for another example.</p></div></div></td></tr><tr><td><p>Difference</p></td><td><div><div><p><code>type Difference = { expected: String, actual: String, path: String }</code></p></div></div></td><td><div><div><p>Describes a single difference between two values at a given structure.</p></div></div></td></tr></tbody></table>
