Skip to content

Commit

Permalink
fix(graphql): update the schema on hot reload.
Browse files Browse the repository at this point in the history
  • Loading branch information
reel committed Feb 15, 2019
1 parent 04fbbf8 commit f3babdc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/core/src/1.graphql.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ class Graphql extends BaseModule {
typeDefs: this.types,
});
this.henri.pen.info('graphql', 'schema', 'valid');
if (!this.graphqlServer) {
this.init();
} else {
this.graphqlServer.schema = this.schema;
}
} catch (error) {
this.henri.pen.error('graphql', error);
this.henri.pen.error(
Expand Down

0 comments on commit f3babdc

Please sign in to comment.