Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Commit

Permalink
Fix graphql schema file creation
Browse files Browse the repository at this point in the history
  • Loading branch information
GoldingAustin committed May 2, 2023
1 parent 2182641 commit a3a0f9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16.20.0
16.20.0
3 changes: 2 additions & 1 deletion applications/server/src/machines/http.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ const createServer = async ({
credentials: true,
};
const schemaFilePath = path.resolve(getRootPath(), 'schema.graphql');
const schemaFile = await fs.readFile(schemaFilePath, 'utf-8');
const production = ctx.config.production;
const schema = await buildSchema({
resolvers,
Expand All @@ -76,6 +75,8 @@ const createServer = async ({
validate: false,
authChecker,
});

const schemaFile = await fs.readFile(schemaFilePath, 'utf-8');
const apolloConfig = {
cache: 'bounded',
schema: schema,
Expand Down

0 comments on commit a3a0f9d

Please sign in to comment.