Skip to content

Commit

Permalink
mount graphql before actual server to resolve issues with graphql fil…
Browse files Browse the repository at this point in the history
…e uploads (header already send, invalid json)
  • Loading branch information
frans committed Aug 28, 2023
1 parent cedcac6 commit e7cb433
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ParseServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,6 @@ class ParseServer {
app.use(middleware);
}

app.use(options.mountPath, this.app);

if (options.mountGraphQL === true || options.mountPlayground === true) {
let graphQLCustomTypeDefs = undefined;
if (typeof options.graphQLSchema === 'string') {
Expand All @@ -294,6 +292,8 @@ class ParseServer {
}
}

app.use(options.mountPath, this.app);

const server = app.listen(options.port, options.host, callback);
this.server = server;

Expand Down

0 comments on commit e7cb433

Please sign in to comment.