# GraphQLAPIWrapper

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/utilities/graphql/GraphQLAPIWrapper)

Wrapper around GraphQL API.

To use, you should have the ``gql`` python package installed.
This wrapper will use the GraphQL API to conduct queries.

## Signature

```python
GraphQLAPIWrapper()
```

## Extends

- `BaseModel`

## Properties

- `custom_headers`
- `fetch_schema_from_transport`
- `graphql_endpoint`
- `gql_client`
- `gql_function`
- `model_config`

## Methods

- [`validate_environment()`](https://reference.langchain.com/python/langchain-community/utilities/graphql/GraphQLAPIWrapper/validate_environment)
- [`run()`](https://reference.langchain.com/python/langchain-community/utilities/graphql/GraphQLAPIWrapper/run)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/a6a6079511ac8a5c1293337f88096b8641562e77/libs/community/langchain_community/utilities/graphql.py#L7)