Skip to content

Commit

Permalink
chore(examples): export GraphQL schema (graphile#1395)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie authored Nov 18, 2020
1 parent eb1d1a6 commit 8609332
Show file tree
Hide file tree
Showing 2 changed files with 694 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/servers/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ export const options: PostGraphileOptions = {
extendedErrors: ['hint', 'detail', 'errcode'],
allowExplain: true,
legacyRelations: 'omit',
exportGqlSchemaPath: `${__dirname}/schema.graphql`,
sortExport: true,
};

export const port: number = process.env.PORT ? parseInt(process.env.PORT, 10) : 3000;
Loading

0 comments on commit 8609332

Please sign in to comment.