From be2c02d7ef2d6dc74dc3ad487519596e9ad1a796 Mon Sep 17 00:00:00 2001 From: Arda TANRIKULU Date: Wed, 23 Mar 2022 00:54:35 +0300 Subject: [PATCH] fix(utils): use 3 as inspect recursive depth --- .changeset/few-bees-compare.md | 5 +++++ packages/utils/src/inspect.ts | 7 +++---- 2 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 .changeset/few-bees-compare.md 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