From 92a6ab310a612cee939a57ba33368839d7182c19 Mon Sep 17 00:00:00 2001 From: lucatk Date: Mon, 29 Jun 2020 20:18:22 +0200 Subject: [PATCH] Allow passing custom gql schema function to ParseServer#start options --- src/ParseServer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }