diff --git a/src/ParseServer.js b/src/ParseServer.js index 081a8c15a4..31c1be4f03 100644 --- a/src/ParseServer.js +++ b/src/ParseServer.js @@ -270,7 +270,7 @@ class ParseServer { graphQLCustomTypeDefs = parse( fs.readFileSync(options.graphQLSchema, 'utf8') ); - } else if (typeof options.graphQLSchema === 'object') { + } else if (typeof options.graphQLSchema === 'object' || typeof options.graphQLSchema === 'function') { graphQLCustomTypeDefs = options.graphQLSchema; }