Skip to content

Commit

Permalink
Update docs which reference dumpSchema (#3157)
Browse files Browse the repository at this point in the history
  • Loading branch information
timleslie authored Jun 16, 2020
1 parent 702b9e1 commit 39f5ca6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/guides/performance.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/keystone/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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? |
Expand Down

0 comments on commit 39f5ca6

Please sign in to comment.