Skip to content

Commit 548b2ef

Browse files
committed
Allow passing custom gql schema function to ParseServer#start options
1 parent 1045eeb commit 548b2ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ParseServer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ class ParseServer {
266266
graphQLCustomTypeDefs = parse(
267267
fs.readFileSync(options.graphQLSchema, 'utf8')
268268
);
269-
} else if (typeof options.graphQLSchema === 'object') {
269+
} else if (typeof options.graphQLSchema === 'object' || typeof options.graphQLSchema === 'function') {
270270
graphQLCustomTypeDefs = options.graphQLSchema;
271271
}
272272

0 commit comments

Comments
 (0)