---
title: planFitQuery
summary: Function in @bimworks/viewercommon.
order: 10
languages: [javascript]
sdk-package: JavaScript · @bimworks/viewercommon
---

# planFitQuery

[[page:reference/javascript/api|API catalogue]] · `@bimworks/viewercommon` · Function

````typescript sdk=js sdk-namespace="@bimworks/viewercommon"
function planFitQuery
````



## Members

| Member | Kind | Description |
|---|---|---|
| [[page:reference/javascript/bimworks-viewercommon/planfitquery-b83abf68#member-bimworks-viewercommon-planfitquery-0995d7b14c41|planFitQuery]] | Method | The query for the fit data (and the given fields) of the objects matching a WHERE clause |

## `planFitQuery` {#member-bimworks-viewercommon-planfitquery-0995d7b14c41}

````typescript sdk=js sdk-namespace="@bimworks/viewercommon"
planFitQuery(where: string, fields?: (string)[]): string
````

The query for the fit data (and the given fields) of the objects matching a WHERE clause

### Parameters

| Name | Type | Description |
|---|---|---|
| `where` | `string` |  |
| `fields` | `(string)[]` |  |
