> ## Documentation Index
> Fetch the complete documentation index at: https://forest-chore-open-api.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# GraphQL / Hasura

> Connect GraphQL or Hasura to Forest

<Note>Only available for Node.js.</Note>

The GraphQL / Hasura datasource connects your GraphQL API or Hasura instance to Forest, allowing you to browse and manage your data through your back-office without writing custom integration code.

## Installation

```bash theme={null}
npm install @forestadmin-experimental/datasource-graphql-hasura
```

## Basic usage

```javascript theme={null}
import { createAgent } from '@forestadmin/agent';
import { createGraphqlHasuraDataSource } from '@forestadmin-experimental/datasource-graphql-hasura';

const agent = createAgent(options);

agent.addDataSource(
  createGraphqlHasuraDataSource({
    url: process.env.GRAPHQL_ENDPOINT,
    headers: {
      'x-hasura-admin-secret': process.env.HASURA_ADMIN_SECRET
    }
  })
);
```

## Source code

[github.com/ForestAdmin/forestadmin-experimental, datasource-graphql-hasura](https://github.com/ForestAdmin/forestadmin-experimental/tree/main/packages/datasource-graphql-hasura)

## Source code

This connector is open source. Browse the code or contribute on GitHub: [`@forestadmin-experimental/datasource-graphql-hasura`](https://github.com/ForestAdmin/forestadmin-experimental/tree/main/packages/datasource-graphql-hasura).
