---
title: containsAll
slug: campaign/docs/containsall
docTags: 
createdAt: 2026-07-02T19:01:46.737Z
---

See also: [contains](docId\:vuTc7v3P7unCsoepQlNya).

This method queries only exact matches. If, for example, "\*@example.com" is contained in the blocklist and you query [john@example.com](mailto\:john@example.com) using this method, false is returned. If you query @example.com, true is returned. To a query both exact matches as well as wildcards, use the [areBlacklisted](docId\:NI9iLiWOljZU7l0SojKka) method.

**Type**: boolean\[ ]

**Parameters**

| Name      | Type       | Value                 |
| --------- | ---------- | --------------------- |
| sessionId | String     | ID of the session     |
| entries   | String\[ ] | Entries to be queried |

**Return values**

For each entry:

- true: Entry is contained in the blocklist
- false: Entry is not contained in the blocklist

**Code structure**

```javascript
boolean[] containsAll(String sessionId, String[] entries)
```
