> For the complete documentation index, see [llms.txt](https://fivesobes.gitbook.io/nexorm/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fivesobes.gitbook.io/nexorm/operators/search-operators/usdcontained.md).

# $contained

Filter records where a column’s value is fully contained within the specified set or value. The $contained method is used to check if the column’s value is a subset of the provided set or array, ensuring that all elements of the column’s value are present in the specified range. This is useful for checking relationships between arrays or sets.

```typescript
await Member.$search({
    $where: {
        badges: {
            $contained: 'VIP'
        }
    }
});
```
