---
title: Filtering
---

**What are filters?**

With _Hot Chocolate_ filters, you can expose complex filter objects through your
API.

Filters are a way to define complex logic that can be applied to a request.

Filters are defined in the `Filter` class.

```typescript
import { Filter } from 'hot-chocolate';

const filter = new Filter(
  'filterName