File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ DB_LOGGING=false
3535#
3636GRAPHQL_ENABLED = true
3737GRAPHQL_ROUTE = " /graphql"
38+ GRAPHQL_EDITOR = true
3839
3940#
4041# Swagger
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ export const env = {
5656 graphql : {
5757 enabled : toBool ( getOsEnv ( 'GRAPHQL_ENABLED' ) ) ,
5858 route : getOsEnv ( 'GRAPHQL_ROUTE' ) ,
59+ editor : toBool ( getOsEnv ( 'GRAPHQL_EDITOR' ) ) ,
5960 } ,
6061 swagger : {
6162 enabled : toBool ( getOsEnv ( 'SWAGGER_ENABLED' ) ) ,
Original file line number Diff line number Diff line change @@ -7,12 +7,12 @@ import { UserRepository } from './../api/repositories/UserRepository';
77
88
99export const graphqlLoader : MicroframeworkLoader = ( settings : MicroframeworkSettings | undefined ) => {
10- if ( settings && env . swagger . enabled ) {
10+ if ( settings && env . graphql . enabled ) {
1111 const expressApp = settings . getData ( 'express_app' ) ;
1212
1313 createGraphQLServer ( expressApp , {
1414 route : env . graphql . route ,
15- editorEnabled : env . graphql . enabled ,
15+ editorEnabled : env . graphql . editor ,
1616 queries : env . app . dirs . queries ,
1717 mutations : env . app . dirs . mutations ,
1818 dataLoaders : {
You can’t perform that action at this time.
0 commit comments