added support for app plugin hook

This commit is contained in:
Wyatt Johnson
2017-12-19 09:13:01 -07:00
parent 8e1cfc3a29
commit e2d8562868
3 changed files with 34 additions and 8 deletions
+3 -2
View File
@@ -55,7 +55,8 @@ const hookSchemas = {
loaders: Joi.func().maxArity(1),
mutators: Joi.func().maxArity(1),
resolvers: Joi.object().pattern(/\w/, Joi.object().pattern(/(?:__resolveType|\w+)/, Joi.func())),
typeDefs: Joi.string()
typeDefs: Joi.string(),
schemaLevelResolveFunction: Joi.func(),
};
/**
@@ -172,7 +173,7 @@ class PluginSection {
if (this.required) {
return;
}
this.required = true;
this.plugins.forEach((plugin) => {