---
schema_version: "1"
id: 0ba8bb668285a86f8db8e119c80db756403d99cb67661673bf14775a25af9380
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.11/dw-diff-types.md
canonical_url: https://docs.mulesoft.com/dataweave/2.11/dw-diff-types
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 37ad4af2a1f9d860e823bad6f076ca46406f26c67639317f158f3ef38692e4d0
description: MuleSoft Documentation Site
release: "2.11"
latest: false
---
---
product: DataWeave
version: 2.11
---

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