---
schema_version: "1"
id: 094fc4fccea153a7eb0bca555e277ef37c6b036b4dd261b403226ceb4c09e081
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.9/dw-diff-types.md
canonical_url: https://docs.mulesoft.com/dataweave/2.9/dw-diff-types
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 500fc678cfd6d105e9106949f0c949c2ba763034e6373fa6f6c664252de5b988
description: MuleSoft Documentation Site
release: "2.9"
latest: false
---
---
product: DataWeave
version: 2.9
---

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