Allow passing custom gql schema function to ParseServer#start options (#6762)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user