mirror of
https://github.com/strapi/strapi.git
synced 2025-12-14 00:29:32 +00:00
Cleanup
This commit is contained in:
parent
2ea04f1cd4
commit
21ac45bdfd
3
packages/plugins/graphql/server/bootstrap.js
vendored
3
packages/plugins/graphql/server/bootstrap.js
vendored
@ -22,7 +22,7 @@ module.exports = async strapi => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const config = getOr({}, 'config', strapi.plugins.graphql);
|
const config = getOr({}, 'config', strapi.plugin('graphql'));
|
||||||
const apolloServerConfig = getOr({}, 'apolloServer', config);
|
const apolloServerConfig = getOr({}, 'apolloServer', config);
|
||||||
|
|
||||||
const serverParams = {
|
const serverParams = {
|
||||||
@ -84,6 +84,7 @@ module.exports = async strapi => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Register destroy behavior
|
// Register destroy behavior
|
||||||
|
// todo[v4]: expose this in strapi-server.js (destroy attribute)
|
||||||
strapi.plugins.graphql.destroy = async () => {
|
strapi.plugins.graphql.destroy = async () => {
|
||||||
await server.stop();
|
await server.stop();
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user