mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: domain_del
This commit is contained in:
1 parent
60f8d4ce49
commit
06faa233f8
5 files changed
+33
-4
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user