core: domain_del

This commit is contained in:
undefined committed 2021-12-31 17:57:29 +08:00
1 parent 60f8d4ce49
commit 06faa233f8
5 files changed
+33 -4

No files matched your search

+1
View File
@@ -41,6 +41,7 @@ export function registerResolver(
const res = await func(arg, ctx, info);
if (typeof res !== 'object') return res;
if (handlers[value]) Object.assign(res, handlers[value]);
ctx.parent = res;
return res;
};
if (handlers[typeName]) handlers[typeName][key.split('(')[0].trim()] = wrappedFunc;