---
schema_version: "1"
id: d38677c597f3f34fe247777a21fbbd7b2d053db3b58bd40ec133b69dff7896b3
title: isObjectType
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.4/dw-tree-functions-isobjecttype.md
canonical_url: https://docs.mulesoft.com/dataweave/2.4/dw-tree-functions-isobjecttype
source_site: docs.mulesoft.com
content_type: documentation
content_hash: e49b941c5a812af67d3b4550b14f3cbdd94b62c3d949eb70fdd5f2b53ba3510c
description: MuleSoft Documentation Site
release: "2.4"
latest: false
---
---
product: DataWeave
version: 2.4
---

# isObjectType

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

## isObjectType(path: Path): Boolean

Returns `true` if the provided `Path` value is an `OBJECT_TYPE` expression.

_Introduced in DataWeave version 2.4.0._

### Parameters

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p><code>path</code></p></td><td><p>The <code>Path</code> value to validate.</p></td></tr></tbody></table>

### Example

This example shows how `isObjectType` behaves with different inputs.

#### Source

```DataWeave
%dw 2.0
import * from dw::util::Tree
output application/json
---
{
  a: isObjectType([{kind: OBJECT_TYPE, selector: "user", namespace: null},
                   {kind: ATTRIBUTE_TYPE, selector: "name", namespace: null}]),
  b: isObjectType([{kind: OBJECT_TYPE, selector: "user", namespace: null},
                   {kind: OBJECT_TYPE, selector: "name", namespace: null}]),
  c: isObjectType([{kind: OBJECT_TYPE, selector: "user", namespace: null}])
}
```

#### Output

```Json
{
  "a": false,
  "b": true,
  "c": true
}
```
