# ListNamespacesOp

> **Class** in `langgraph.store`

📖 [View in docs](https://reference.langchain.com/python/langgraph.store/base/ListNamespacesOp)

Operation to list and filter namespaces in the store.

This operation allows exploring the organization of data, finding specific
collections, and navigating the namespace hierarchy.

???+ example "Examples"

    List all namespaces under the `"documents"` path:

    ```python
    ListNamespacesOp(
        match_conditions=(MatchCondition(match_type="prefix", path=("documents",)),),
        max_depth=2
    )
    ```

    List all namespaces that end with `"v1"`:

    ```python
    ListNamespacesOp(
        match_conditions=(MatchCondition(match_type="suffix", path=("v1",)),),
        limit=50
    )
    ```

## Signature

```python
ListNamespacesOp()
```

## Extends

- `NamedTuple`

## Properties

- `match_conditions`
- `max_depth`
- `limit`
- `offset`

---

[View source on GitHub](https://github.com/langchain-ai/langgraph/blob/1a9baae9592e0c21336f6e09c891ba75481fd657/libs/checkpoint/langgraph/store/base/__init__.py#L368)