# Is that possible to use GraphQL?

**URL:** <https://community.forestadmin.com/t/is-that-possible-to-use-graphql/2943>\
**Category:** Help me!\
**Tags:** setup\
**Created:** [July 20, 2021, 11:38am UTC](https://community.forestadmin.com/t/is-that-possible-to-use-graphql/2943 "2021-07-20T11:38:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vaclav](https://avatars.discourse-cdn.com/v4/letter/v/34f0e0/32.png) [@Vaclav](https://community.forestadmin.com/u/Vaclav)\
**Post date:** [July 20, 2021, 11:38am UTC](https://community.forestadmin.com/t/is-that-possible-to-use-graphql/2943/1 "2021-07-20T11:38:52Z")

</div>

Hi everyone,  
is it please possible to use Forest Admin with GraphQL? I checked documentation, but I didn’t find much.

Thank you,

Vaclav

---

<div class="post-metadata">

**Author:** ![anon39940173](https://avatars.discourse-cdn.com/v4/letter/a/8c91f0/32.png) [@anon39940173](https://community.forestadmin.com/u/anon39940173)\
**Post date:** [July 21, 2021, 2:34pm UTC](https://community.forestadmin.com/t/is-that-possible-to-use-graphql/2943/2 "2021-07-21T14:34:46Z")

</div>

What is your objective?

There is no specific adapters to connect Forest Admin to GraphQL APIs. Even the REST API adapter is very young, and not feature complete.

---

<div class="post-metadata">

**Author:** ![Vaclav](https://avatars.discourse-cdn.com/v4/letter/v/34f0e0/32.png) [@Vaclav](https://community.forestadmin.com/u/Vaclav)\
**Post date:** [July 22, 2021, 10:24am UTC](https://community.forestadmin.com/t/is-that-possible-to-use-graphql/2943/3 "2021-07-22T10:24:51Z")

</div>

Hello @anon39940173,

thank you for your reply. I should probably describe my development stack a bit more. Sorry for it that I didn’t do right from the beginning.

As a backend in my project, I am using Nestjs together with @nest/graphql.

In addition, postgresql is running in the docker container and is managed by @nest/typeorm.

So we with that setup, I can get and maintain all information easily with GraphSchema like this:

 ![Screenshot from 2021-07-22 08-36-55](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/d/d68a2fa59336f869c9292be66ff5be62076f8fcc.png)

Now, I just don’t know which way to go with ForestAdmin. While creating a new project, datasource type “REST API” does not seem to be an option for since I can use request body, right? Even if I wouldn’t use GraphQL, I would need to send a bit more complex information in the body then just use param.

I assume I will need any other datasource type together with forest admin backend, right? Should I go with that “PostgreSQL” in that case?

Thank you for your help and have a nice day!

Vaclav

---

<div class="post-metadata">

**Author:** ![anon39940173](https://avatars.discourse-cdn.com/v4/letter/a/8c91f0/32.png) [@anon39940173](https://community.forestadmin.com/u/anon39940173)\
**Post date:** [July 22, 2021, 11:17am UTC](https://community.forestadmin.com/t/is-that-possible-to-use-graphql/2943/4 "2021-07-22T11:17:59Z")

</div>

Yes…  
For now, neither NestJS, TypeORM, nor GraphQL endpoints are natively supported by ForestAdmin.

This leave you with the only remaining option: connect ForestAdmin to your Postgres database directly.

This is done by generated a agent with the `forest` CLI.  
The installation wizard (choose “Postgres”) will guide you to do so.

The downside is that when you perform changes on the structure of your database, you will need to make those changes again in the generated project (which will use Sequelize).

---

<div class="post-metadata">

**Author:** ![Vaclav](https://avatars.discourse-cdn.com/v4/letter/v/34f0e0/32.png) [@Vaclav](https://community.forestadmin.com/u/Vaclav)\
**Post date:** [July 22, 2021, 12:43pm UTC](https://community.forestadmin.com/t/is-that-possible-to-use-graphql/2943/5 "2021-07-22T12:43:55Z")

</div>

Thank you @anon39940173 for your help!
