# construct_schema

> **Function** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/chains/graph_qa/cypher/construct_schema)

Filter the schema based on included or excluded types

## Signature

```python
construct_schema(
    structured_schema: Dict[str, Any],
    include_types: List[str],
    exclude_types: List[str],
) -> str
```

## ⚠️ Deprecated

Deprecated since version 0.3.8.

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/4b280287bd55b99b44db2dd849f02d66c89534d5/libs/community/langchain_community/chains/graph_qa/cypher.py#L71)