ci: add test & benchmark

This commit is contained in:
undefined committed 2022-04-04 21:50:33 +08:00
1 parent 5c1217dc60
commit d589217a75
20 files changed
+155 -52

No files matched your search

+1 -1
View File
@@ -39,7 +39,7 @@ export function registerResolver(
registerValue(typeName, key, value, description);
const wrappedFunc = async (arg, ctx, info) => {
const res = await func(arg, ctx, info);
if (typeof res !== 'object') return res;
if (typeof res !== 'object' || res === null) return res;
const node = value.includes('!') ? value.split('!')[0] : value;
if (handlers[node]) Object.assign(res, handlers[node]);
ctx.parent = res;