Replace functions within arrays in GraphQL (#14705)

This commit is contained in:
ian
2022-07-28 00:32:39 +08:00
committed by GitHub
parent 1054ca69ed
commit 732b49f482

View File

@@ -1602,7 +1602,8 @@ export class GraphQLService {
result[currentKey] = Object.values(value)[0]!;
} else {
result[currentKey] = value?.constructor === Object ? replaceFuncDeep(value) : value;
result[currentKey] =
value?.constructor === Object || value?.constructor === Array ? replaceFuncDeep(value) : value;
}
});
}