---
lang: en
title: 'API docs: repository-json-schema.getwherejsonschemafor'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.repository-json-schema.getwherejsonschemafor.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/repository-json-schema](./repository-json-schema.md) &gt; [getWhereJsonSchemaFor](./repository-json-schema.getwherejsonschemafor.md)

## getWhereJsonSchemaFor() function

Build a JSON schema describing the format of the "where" object used to filter model instances to query, update or delete.

Note we don't take the model properties into account yet and return a generic json schema allowing any "where" condition.

<b>Signature:</b>

```typescript
export declare function getWhereJsonSchemaFor(modelCtor: typeof Model): JsonSchema;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  modelCtor | <code>typeof Model</code> | The model constructor to build the filter schema for. |

<b>Returns:</b>

`JsonSchema`


