# MatchCondition

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

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

Represents a pattern for matching namespaces in the store.

This class combines a match type (prefix or suffix) with a namespace path
pattern that can include wildcards to flexibly match different namespace
hierarchies.

???+ example "Examples"

    Prefix matching:

    ```python
    MatchCondition(match_type="prefix", path=("users", "profiles"))
    ```

    Suffix matching with wildcard:

    ```python
    MatchCondition(match_type="suffix", path=("cache", "*"))
    ```

    Simple suffix matching:

    ```python
    MatchCondition(match_type="suffix", path=("v1",))
    ```

## Signature

```python
MatchCondition()
```

## Extends

- `NamedTuple`

## Properties

- `match_type`
- `path`

---

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