dipdup-io/dipdup

Hasura: multiple sources

droserasprout opened this issue · 0 comments

Multiple DipDup instances should be able to coexist on a single Hasura instance. The following configuration should work but it's not

hasura:
  source: dev
  create_source: True

Custom metadata request:

{
  "type": "pg_add_source",
  "args": {
        "name": "dev",
        "configuration": {
            "connection_info": {
                "database_url": {
                    "from_env": "HASURA_GRAPHQL_DEV_DATABASE_URL"
                }
            },
            "use_prepared_statements": true
        },
        "replace_configuration": true,
        "customization": {
            "root_fields": {
                "prefix": "dev_"
            },
            "type_names": {
                "prefix": "dev_"
            },
            "naming_convention": "hasura-default"
        }
    }
}

Requires HASURA_GRAPHQL_EXPERIMENTAL_FEATURES=naming_convention env. DipDup does not support naming convention API; still marked experimental for some reason.