mirror of
https://github.com/wassname/talk.git
synced 2026-08-10 12:41:02 +08:00
added support for app plugin hook
This commit is contained in:
+3
-2
@@ -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) => {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user