---
schema_version: "1"
id: c37e5001d771d907a21a639b31f4a1a26115b7f91b35f6f66209651ee486d044
title: Diff Types (dw::util::Diff)
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.6/dw-diff-types.md
canonical_url: https://docs.mulesoft.com/dataweave/2.6/dw-diff-types
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 18e34a9b47fd5a7ee4e922b9ec396816d526242dd74cc2281403ad2ab93fcc04
description: MuleSoft Documentation Site
release: "2.6"
latest: false
---
---
product: DataWeave
version: 2.6
---

# 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>
