Skip to content

Commit be2c02d

Browse files
committed
fix(utils): use 3 as inspect recursive depth
1 parent 828fa8d commit be2c02d

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.changeset/few-bees-compare.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@graphql-tools/utils': patch
3+
---
4+
5+
fix(utils): use 3 as inspect recursive depth

packages/utils/src/inspect.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
import { GraphQLError } from 'graphql';
55
import { isAggregateError } from './AggregateError';
66

7-
const MAX_ARRAY_LENGTH = 10;
8-
const MAX_RECURSIVE_DEPTH = 2;
7+
const MAX_RECURSIVE_DEPTH = 3;
98

109
/**
1110
* Used to print values in error messages.
@@ -93,8 +92,8 @@ function formatArray(array: ReadonlyArray<unknown>, seenValues: ReadonlyArray<un
9392
return '[Array]';
9493
}
9594

96-
const len = Math.min(MAX_ARRAY_LENGTH, array.length);
97-
const remaining = array.length - len;
95+
const len = array.length;
96+
const remaining = array.length;
9897
const items = [];
9998

10099
for (let i = 0; i < len; ++i) {

0 commit comments

Comments
 (0)