added subscription hooks

This commit is contained in:
Wyatt Johnson
2017-12-20 09:31:59 -07:00
parent 519464ce57
commit b46b392af4
2 changed files with 38 additions and 3 deletions
+4
View File
@@ -57,6 +57,10 @@ const hookSchemas = {
resolvers: Joi.object().pattern(/\w/, Joi.object().pattern(/(?:__resolveType|\w+)/, Joi.func())),
typeDefs: Joi.string(),
schemaLevelResolveFunction: Joi.func(),
websockets: Joi.object({
onConnect: Joi.func(),
onDisconnect: Joi.func(),
}),
};
/**