This commit is contained in:
Convly 2021-08-23 19:49:28 +02:00
parent 2ea04f1cd4
commit 21ac45bdfd

View File

@ -22,7 +22,7 @@ module.exports = async strapi => {
return;
}
const config = getOr({}, 'config', strapi.plugins.graphql);
const config = getOr({}, 'config', strapi.plugin('graphql'));
const apolloServerConfig = getOr({}, 'apolloServer', config);
const serverParams = {
@ -84,6 +84,7 @@ module.exports = async strapi => {
});
// Register destroy behavior
// todo[v4]: expose this in strapi-server.js (destroy attribute)
strapi.plugins.graphql.destroy = async () => {
await server.stop();
};