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; }