Skip to content

Commit

Permalink
Fix mergeProxiedResults errors aggregation (#1621)
Browse files Browse the repository at this point in the history
* Bump @typescript-eslint/eslint-plugin from 3.1.0 to 3.2.0 (#1620)

* Fix mergeProxiedResults errors aggregation

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
nicolas-cherel and dependabot[bot] committed Jun 9, 2020
1 parent 3fd43fb commit 188fb3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/delegate/src/proxiedResult.ts
Expand Up @@ -68,7 +68,7 @@ export function dehoistResult(parent: any, delimeter = '__gqltf__'): any {
}

export function mergeProxiedResults(target: any, ...sources: any): any {
const errors = target[ERROR_SYMBOL].concat(sources.map((source: any) => source[ERROR_SYMBOL]));
const errors = target[ERROR_SYMBOL].concat(...sources.map((source: any) => source[ERROR_SYMBOL]));
const fieldSubschemaMap = sources.reduce((acc: Record<any, SubschemaConfig>, source: any) => {
const subschema = source[OBJECT_SUBSCHEMA_SYMBOL];
Object.keys(source).forEach(key => {
Expand Down

0 comments on commit 188fb3d

Please sign in to comment.