# construct_schema

> **Function** in `langchain_neo4j`

📖 [View in docs](https://reference.langchain.com/python/langchain-neo4j/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],
    is_enhanced: bool,
) -> str
```

---

[View source on GitHub](https://github.com/langchain-ai/langchain-neo4j/blob/cb87fdba5ae2f6bc5092eb76a322e27c46512846/libs/neo4j/langchain_neo4j/chains/graph_qa/cypher.py#L47)