diff --git a/.changeset/few-bees-compare.md b/.changeset/few-bees-compare.md new file mode 100644 index 00000000000..52b27893cbb --- /dev/null +++ b/.changeset/few-bees-compare.md @@ -0,0 +1,5 @@ +--- +'@graphql-tools/utils': patch +--- + +fix(utils): use 3 as inspect recursive depth diff --git a/packages/utils/src/inspect.ts b/packages/utils/src/inspect.ts index d37d8ffdb16..8860edf7429 100644 --- a/packages/utils/src/inspect.ts +++ b/packages/utils/src/inspect.ts @@ -4,8 +4,7 @@ import { GraphQLError } from 'graphql'; import { isAggregateError } from './AggregateError'; -const MAX_ARRAY_LENGTH = 10; -const MAX_RECURSIVE_DEPTH = 2; +const MAX_RECURSIVE_DEPTH = 3; /** * Used to print values in error messages. @@ -93,8 +92,8 @@ function formatArray(array: ReadonlyArray, seenValues: ReadonlyArray