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

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