> ## Documentation Index
> Fetch the complete documentation index at: https://docs.metabind.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Filter Operators

> Reference for all available filter operators

## Comparison Operators

| Operator | Description           | Example                                |
| -------- | --------------------- | -------------------------------------- |
| `eq`     | Equals                | `{"status": {"eq": "active"}}`         |
| `neq`    | Not equals            | `{"status": {"neq": "deleted"}}`       |
| `gt`     | Greater than          | `{"updatedAt": {"gt": "2024-01-01"}}`  |
| `gte`    | Greater than or equal | `{"updatedAt": {"gte": "2024-01-01"}}` |
| `lt`     | Less than             | `{"updatedAt": {"lt": "2024-12-31"}}`  |
| `lte`    | Less than or equal    | `{"updatedAt": {"lte": "2024-12-31"}}` |

### Example: Date Range

```json theme={null}
{
  "filter": {
    "updatedAt": {
      "gte": "2024-01-01T00:00:00Z",
      "lte": "2024-12-31T23:59:59Z"
    }
  }
}
```

## Array Operators

| Operator | Description         | Example                                         |
| -------- | ------------------- | ----------------------------------------------- |
| `in`     | Value in array      | `{"type": {"in": ["image/jpeg", "image/png"]}}` |
| `all`    | Contains all values | `{"tags": {"all": ["hero", "product"]}}`        |
| `any`    | Contains any value  | `{"tags": {"any": ["hero", "banner"]}}`         |

### Example: Multiple Types

```json theme={null}
{
  "filter": {
    "type": {
      "in": ["image/jpeg", "image/png", "image/webp"]
    }
  }
}
```

### Example: Tag Matching

```json theme={null}
{
  "filter": {
    "tags": {
      "all": ["hero", "homepage"]
    }
  }
}
```

## Pattern Operators

| Operator | Description                   | Example                       |
| -------- | ----------------------------- | ----------------------------- |
| `like`   | Pattern matching (% wildcard) | `{"name": {"like": "hero%"}}` |

### Example: Name Pattern

```json theme={null}
{
  "filter": {
    "name": {
      "like": "banner-%"
    }
  }
}
```

## Combining Operators

Multiple operators can be combined within a single filter:

```json theme={null}
{
  "filter": {
    "type": {
      "in": ["image/jpeg", "image/png"]
    },
    "tags": {
      "any": ["hero", "product"]
    },
    "status": {
      "eq": "active"
    },
    "updatedAt": {
      "gte": "2024-01-01T00:00:00Z"
    }
  }
}
```

<Note>
  All filter conditions are combined with AND logic. An asset must match all conditions to be included in results.
</Note>
