From ee49a468d53f647c1af9981b3c24cdacd67c91a5 Mon Sep 17 00:00:00 2001 From: Tim Leslie Date: Tue, 16 Jun 2020 15:16:52 +1000 Subject: [PATCH] Update docs which reference dumpSchema --- docs/guides/performance.md | 2 +- packages/keystone/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guides/performance.md b/docs/guides/performance.md index 736b2d9db09..53b3eceb454 100644 --- a/docs/guides/performance.md +++ b/docs/guides/performance.md @@ -69,7 +69,7 @@ keystone.createList('Foo', { // ---- Schema dumping ---- if (typeof process.env.DUMP_SCHEMA === 'string') { const schemaName = 'public'; //this is the default keystonejs schema name - keystone.dumpSchema(process.env.DUMP_SCHEMA, schemaName); + fs.writeFileSync(process.env.DUMP_SCHEMA, keystone.dumpSchema(schemaName)); console.log(`Schema dumped to: ${path.resolve(process.env.DUMP_SCHEMA)}`); process.exit(0); } diff --git a/packages/keystone/README.md b/packages/keystone/README.md index 6786065008a..aa2fb21fe90 100644 --- a/packages/keystone/README.md +++ b/packages/keystone/README.md @@ -142,7 +142,7 @@ Please note: We use these internally but provide no support or assurance if used | Method | Description | | --------------------- | ---------------------------------------------------------------------------- | -| `dumpSchema` | Dump schema to a file. | +| `dumpSchema` | Dump schema to a string. | | `getTypeDefs` | Remove from user documentation? | | `getResolvers` | Remove from user documentation? | | `registerSchema` | Remove from user documentation? |