4

I am implementing a GraphQL server (Hasura), the normal setup looks like this:

docker run -d --net=host \
-e HASURA_GRAPHQL_DATABASE_URL=postgres://username:password@hostname:port/dbname \
-e HASURA_GRAPHQL_ENABLE_CONSOLE=true \
hasura/graphql-engine:latest

I couldn't find in the docs a way to use multiple databases within the same instance, is it even possible?

Ander
  • 5,093
  • 7
  • 41
  • 70

2 Answers2

6

Hasura added that feature recently to Hasura 2.0 . By now you can use multiple databases per hasura instance

dknaus
  • 1,133
  • 12
  • 16
2

It's currently not possible.

If you want one graphql endpoint, you can instantiate many Hasura as you need for each tables. One of this Hasura instance could be your main endpoint, and you can add remote schema for each other tables.

ManUtopiK
  • 4,495
  • 3
  • 38
  • 52