fix: fix graphiql

This commit is contained in:
Wyatt Johnson
2018-10-12 15:04:45 -06:00
parent d25862e035
commit 5362a26976
2 changed files with 2 additions and 2 deletions
@@ -28,7 +28,7 @@ export const graphqlMiddleware = (
// Generate the validation rules.
const validationRules: Array<(context: ValidationContext) => any> = [];
if (config.get("env") === "production") {
if (config.get("env") === "production" && !config.get("enable_graphiql")) {
// Disable introspection in production.
validationRules.push(NoIntrospection);
}