Skip to content

Commit 4437ea7

Browse files
authored
Allow passing custom gql schema function to ParseServer#start options (#6762)
1 parent e848b54 commit 4437ea7

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
@@ -270,7 +270,7 @@ class ParseServer {
270270
graphQLCustomTypeDefs = parse(
271271
fs.readFileSync(options.graphQLSchema, 'utf8')
272272
);
273-
} else if (typeof options.graphQLSchema === 'object') {
273+
} else if (typeof options.graphQLSchema === 'object' || typeof options.graphQLSchema === 'function') {
274274
graphQLCustomTypeDefs = options.graphQLSchema;
275275
}
276276

0 commit comments

Comments
 (0)