From 355f245bfe36c8068f549babbdef2707305bcb59 Mon Sep 17 00:00:00 2001 From: Edvard Date: Thu, 18 Apr 2019 13:56:28 +0200 Subject: [PATCH] Config parameter rename --- postgraphile/README.md | 7 +++++-- postgraphile/src/config/parse.ts | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/postgraphile/README.md b/postgraphile/README.md index b107ede5..87d21244 100644 --- a/postgraphile/README.md +++ b/postgraphile/README.md @@ -23,14 +23,17 @@ Build the docker image in this directory. Start the `GraphiQL` frontend by: * GraphiQL frontend is available at `:3000/graphiql` GraphQL endpoint is available at `:3000/graphql` -By default, this build will expose only the "public" schema - to add other schemas, use either the env variables, or a config file `config.toml` and set the env var `CONFIG_PATH` to point to its location. Example `toml`: +By default, this build will expose only the "public" schema - to add other schemas, use either the env variables, +or a config file `config.toml` and set the env var `CONFIG_PATH` to point to its location. Example `toml`: ``` [database] name = "vulcanize_public" hostname = "localhost" port = 5432 - schemas = ["public", "yourschema"] + gq_schemas = ["public", "yourschema"] + gq_user = "graphql" + gq_password = "graphql" ``` ## Building diff --git a/postgraphile/src/config/parse.ts b/postgraphile/src/config/parse.ts index 6390e036..a81cbab7 100644 --- a/postgraphile/src/config/parse.ts +++ b/postgraphile/src/config/parse.ts @@ -34,7 +34,7 @@ export function parseConfig( database = parsedToml['database']['name']; user = parsedToml['database']['user']; password = parsedToml['database']['password']; - gqSchemas = parsedToml['database']['schemas']; + gqSchemas = parsedToml['database']['gq_schemas']; gqUser = parsedToml['database']['gq_user'] || gqUser; gqPassword = parsedToml['database']['gq_password'] || gqPassword; }