---
title: query
slug: viewer-3d/methods/query
docTags: 
createdAt: 2024-03-01T14:17:48.684Z
---

Returns a list of object ids that match the specified **IFC guids**.

## Example

::codepen{url="https://codepen.io/Catenda/embed/gONLOrj"}

## Usage

```javascript
const query = {
  "attributes.GlobalId": {
    $in: ["ifc-guid-1", "ifc-guid-2"]
  }
};

const objectIds = viewer3d.query(query);
```

## Parameters

### query

| **Type** | **Required** |
| -------- | ------------ |
| Object   | Yes          |

## Return Value

List of object ids that match the query.

| **Type**       |
| -------------- |
| Array\[String] |

