Skip to content

fix(graphql)!: decouple resolver depth from path collapsing#8774

Merged
BridgeAR merged 3 commits into
masterfrom
BridgeAR/2026-06-03-graphql-depth-v6-list-index
Jun 29, 2026
Merged

fix(graphql)!: decouple resolver depth from path collapsing#8774
BridgeAR merged 3 commits into
masterfrom
BridgeAR/2026-06-03-graphql-depth-v6-list-index

Conversation

@BridgeAR

@BridgeAR BridgeAR commented Jun 3, 2026

Copy link
Copy Markdown
Member

What

The GraphQL resolver depth filter counted the full execution path, including
the numeric list indices that collapse later folds away. The same query reached
a different depth depending on whether collapse was on, so a field one list-hop
below the limit was instrumented with collapsing off and dropped with it on, even
though both describe the same selection-set nesting.

This counts only selection-set segments (string path keys) toward depth, so the
limit tracks query structure rather than execution artifacts.

Why gated behind DD_MAJOR

It shifts which resolvers are instrumented at a given depth, so it ships behind
DD_MAJOR: the v5 line keeps the old list-index counting when collapsing is on;
v6 counts selection-set depth only. A countListIndices config flag carries the
gate so shouldInstrument stays free of version checks.

Test plan

  • New v6-default + v5-legacy regression in test/index.spec.js, gated on DD_MAJOR.
  • New test/config.spec.js proxyquires both DD_MAJOR arms to pin the gate and the
    depth count on either release line.
  • nyc confirms the changed lines/branches are covered; eslint clean.

Fixes #7468

@dd-octo-sts

dd-octo-sts Bot commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Overall package size

Self size: 6.4 MB
Deduped: 7.46 MB
No deduping: 7.46 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.2.0 | 104.26 kB | 843.44 kB | | opentracing | 0.14.7 | 194.81 kB | 194.81 kB | | dc-polyfill | 0.1.11 | 25.74 kB | 25.74 kB |

🤖 This report was automatically generated by heaviest-objects-in-the-universe

@datadog-prod-us1-3

datadog-prod-us1-3 Bot commented Jun 3, 2026

Copy link
Copy Markdown

Tests

🎉 All green!

🧪 All tests passed
❄️ No new flaky tests detected

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 87.97% (-0.01%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: ed48c46 | Docs | Datadog PR Page | Give us feedback!

@BridgeAR
BridgeAR marked this pull request as ready for review June 3, 2026 15:54
@BridgeAR
BridgeAR requested review from a team as code owners June 3, 2026 15:54
@BridgeAR
BridgeAR requested review from tlhunter and removed request for a team June 3, 2026 15:54
@BridgeAR BridgeAR changed the title fix(graphql): decouple resolver depth from path collapsing fix(graphql)!: decouple resolver depth from path collapsing Jun 3, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 24d24f2af6

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread packages/datadog-plugin-graphql/test/index.spec.js Outdated
@codecov

codecov Bot commented Jun 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.68%. Comparing base (27dcc31) to head (ed48c46).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8774      +/-   ##
==========================================
- Coverage   93.69%   93.68%   -0.01%     
==========================================
  Files         889      889              
  Lines       50856    50858       +2     
  Branches    11830    11831       +1     
==========================================
+ Hits        47647    47648       +1     
- Misses       3209     3210       +1     
Flag Coverage Δ
aiguard 34.88% <ø> (-0.08%) ⬇️
aiguard-integration 41.79% <ø> (-0.01%) ⬇️
apm-bucket-0 34.85% <ø> (-0.08%) ⬇️
apm-bucket-1 40.34% <ø> (-0.07%) ⬇️
apm-bucket-2 37.35% <ø> (-0.07%) ⬇️
apm-capabilities-tracing 48.29% <25.00%> (+<0.01%) ⬆️
apm-integrations-aerospike 33.13% <ø> (-0.08%) ⬇️
apm-integrations-confluentinc-kafka-javascript 40.04% <ø> (-0.08%) ⬇️
apm-integrations-couchbase 33.41% <ø> (-0.19%) ⬇️
apm-integrations-http 42.04% <ø> (-0.07%) ⬇️
apm-integrations-kafkajs 40.27% <ø> (-0.07%) ⬇️
apm-integrations-next 29.51% <ø> (-0.07%) ⬇️
apm-integrations-prisma 35.04% <ø> (-0.07%) ⬇️
apm-integrations-tedious 33.90% <ø> (-0.08%) ⬇️
appsec 57.38% <ø> (-0.06%) ⬇️
appsec-express_fastify_graphql 53.78% <75.00%> (-0.03%) ⬇️
appsec-integration 36.26% <75.00%> (+<0.01%) ⬆️
appsec-kafka_ldapjs_lodash 43.60% <ø> (-0.07%) ⬇️
appsec-mongodb-core_mongoose_mysql 48.81% <ø> (-0.06%) ⬇️
appsec-next 28.01% <ø> (-0.07%) ⬇️
appsec-node-serialize_passport_postgres 48.01% <ø> (-0.06%) ⬇️
appsec-sourcing_stripe_template 45.56% <ø> (-0.06%) ⬇️
debugger 44.37% <ø> (-0.05%) ⬇️
instrumentations-bucket-0 28.16% <ø> (-0.08%) ⬇️
instrumentations-bucket-1 37.41% <ø> (-0.07%) ⬇️
instrumentations-bucket-10 40.44% <ø> (-0.07%) ⬇️
instrumentations-bucket-11 27.96% <ø> (-0.08%) ⬇️
instrumentations-bucket-12 28.67% <ø> (-0.08%) ⬇️
instrumentations-bucket-13 27.79% <ø> (-0.08%) ⬇️
instrumentations-bucket-2 30.24% <ø> (-0.07%) ⬇️
instrumentations-bucket-3 35.91% <ø> (-0.07%) ⬇️
instrumentations-bucket-4 28.07% <ø> (-0.08%) ⬇️
instrumentations-bucket-5 36.28% <ø> (-0.07%) ⬇️
instrumentations-bucket-6 38.26% <ø> (-0.08%) ⬇️
instrumentations-bucket-7 36.01% <ø> (-0.07%) ⬇️
instrumentations-bucket-8 36.96% <ø> (-0.07%) ⬇️
instrumentations-bucket-9 39.53% <ø> (-0.07%) ⬇️
instrumentations-instrumentation-couchbase 46.54% <ø> (ø)
instrumentations-integration-esbuild 24.87% <ø> (ø)
llmobs-ai_anthropic_bedrock 39.54% <ø> (-0.07%) ⬇️
llmobs-google-genai_langchain_vertex-ai 36.86% <ø> (-0.18%) ⬇️
llmobs-openai 39.59% <ø> (-0.07%) ⬇️
llmobs-sdk 43.60% <ø> (-0.08%) ⬇️
master-coverage 93.68% <100.00%> (?)
openfeature 37.76% <ø> (ø)
openfeature-unit 50.39% <ø> (ø)
platform-core_esbuild_instrumentations-misc 23.36% <ø> (ø)
platform-integration 47.43% <ø> (ø)
platform-shimmer_unit-guardrails_webpack 18.89% <ø> (ø)
plugins-bucket-0 36.34% <ø> (-0.07%) ⬇️
plugins-bucket-1 39.61% <ø> (ø)
plugins-bucket-11 38.47% <ø> (-0.08%) ⬇️
plugins-bucket-17 39.16% <ø> (-0.07%) ⬇️
plugins-bucket-18 42.02% <75.00%> (-0.06%) ⬇️
plugins-bucket-19 39.57% <100.00%> (-0.07%) ⬇️
plugins-bucket-20 43.29% <ø> (-0.07%) ⬇️
plugins-bucket-4 37.72% <ø> (-0.07%) ⬇️
plugins-bullmq_cassandra_cookie 39.77% <ø> (-0.07%) ⬇️
plugins-cookie-parser_crypto_dd-trace-api 33.23% <ø> (-0.08%) ⬇️
plugins-fetch_fs_generic-pool 36.06% <ø> (-0.07%) ⬇️
plugins-google-cloud-pubsub_grpc_handlebars 43.11% <ø> (-0.08%) ⬇️
plugins-hapi_hono_ioredis 37.79% <ø> (-0.07%) ⬇️
plugins-jest_knex_langgraph 32.61% <ø> (-0.08%) ⬇️
plugins-ldapjs_light-my-request_limitd-client 27.85% <ø> (-0.08%) ⬇️
plugins-lodash_mariadb_memcached 35.18% <ø> (-0.08%) ⬇️
plugins-mongodb_mongodb-core_mongoose 36.32% <ø> (-0.07%) ⬇️
plugins-multer_mysql_mysql2 35.15% <ø> (-0.08%) ⬇️
plugins-nats_node-serialize_opensearch 36.94% <ø> (-0.29%) ⬇️
plugins-passport-http_pino_postgres 35.54% <ø> (-0.08%) ⬇️
plugins-process_pug_redis 34.27% <ø> (-0.08%) ⬇️
plugins-undici_url_valkey 35.89% <ø> (-0.07%) ⬇️
plugins-vm_winston_ws 37.56% <ø> (-0.08%) ⬇️
profiling 43.62% <ø> (-0.07%) ⬇️
serverless-aws-sdk-aws-sdk 33.30% <ø> (-0.07%) ⬇️
serverless-aws-sdk-bedrockruntime 32.17% <ø> (-0.07%) ⬇️
serverless-aws-sdk-client 37.21% <ø> (ø)
serverless-aws-sdk-dynamodb 34.10% <ø> (-0.12%) ⬇️
serverless-aws-sdk-eventbridge 27.25% <ø> (-0.07%) ⬇️
serverless-aws-sdk-kinesis 37.41% <ø> (-0.07%) ⬇️
serverless-aws-sdk-lambda 34.60% <ø> (-0.07%) ⬇️
serverless-aws-sdk-s3 32.60% <ø> (-0.07%) ⬇️
serverless-aws-sdk-serverless-peer-service 39.47% <ø> (-0.08%) ⬇️
serverless-aws-sdk-sns 38.38% <ø> (-0.07%) ⬇️
serverless-aws-sdk-sqs 38.01% <ø> (-0.07%) ⬇️
serverless-aws-sdk-stepfunctions 33.19% <ø> (-0.07%) ⬇️
serverless-aws-sdk-util 47.95% <ø> (ø)
serverless-bucket-0 39.47% <ø> (ø)
serverless-lambda 34.33% <ø> (-0.09%) ⬇️
test-optimization-cucumber 52.57% <ø> (+0.11%) ⬆️
test-optimization-cypress 49.62% <ø> (+0.07%) ⬆️
test-optimization-jest 55.58% <ø> (+0.01%) ⬆️
test-optimization-mocha 53.66% <ø> (+0.08%) ⬆️
test-optimization-playwright-playwright-atr 43.59% <ø> (+0.08%) ⬆️
test-optimization-playwright-playwright-efd 43.87% <ø> (+0.08%) ⬆️
test-optimization-playwright-playwright-final-status 43.93% <ø> (+0.08%) ⬆️
test-optimization-playwright-playwright-impacted-tests 43.41% <ø> (ø)
test-optimization-playwright-playwright-reporting 43.50% <ø> (+0.08%) ⬆️
test-optimization-playwright-playwright-test-management 44.93% <ø> (+0.08%) ⬆️
test-optimization-playwright-playwright-test-span 44.78% <ø> (+0.07%) ⬆️
test-optimization-selenium 45.52% <ø> (+0.06%) ⬆️
test-optimization-testopt 48.28% <ø> (+0.08%) ⬆️
test-optimization-vitest 50.96% <ø> (+0.12%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pr-commenter

pr-commenter Bot commented Jun 3, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-06-27 13:15:11

Comparing candidate commit ed48c46 in PR branch BridgeAR/2026-06-03-graphql-depth-v6-list-index with baseline commit 27dcc31 in branch master.

📊 Benchmarking dashboard

Found 0 performance improvements and 0 performance regressions! Performance is the same for 2255 metrics, 31 unstable metrics.

Explanation

This is an A/B test comparing a candidate commit's performance against that of a baseline commit. Performance changes are noted in the tables below as:

  • 🟩 = significantly better candidate vs. baseline
  • 🟥 = significantly worse candidate vs. baseline

We compute a confidence interval (CI) over the relative difference of means between metrics from the candidate and baseline commits, considering the baseline as the reference.

If the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD), the change is considered significant.

Feel free to reach out to #apm-benchmarking-platform on Slack if you have any questions.

More details about the CI and significant changes

You can imagine this CI as a range of values that is likely to contain the true difference of means between the candidate and baseline commits.

CIs of the difference of means are often centered around 0%, because often changes are not that big:

---------------------------------(------|---^--------)-------------------------------->
                              -0.6%    0%  0.3%     +1.2%
                                 |          |        |
         lower bound of the CI --'          |        |
sample mean (center of the CI) -------------'        |
         upper bound of the CI ----------------------'

As described above, a change is considered significant if the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD).

For instance, for an execution time metric, this confidence interval indicates a significantly worse performance:

----------------------------------------|---------|---(---------^---------)---------->
                                       0%        1%  1.3%      2.2%      3.1%
                                                  |   |         |         |
       significant impact threshold --------------'   |         |         |
                      lower bound of CI --------------'         |         |
       sample mean (center of the CI) --------------------------'         |
                      upper bound of CI ----------------------------------'

Unstable benchmarks

These benchmarks have a confidence interval too wide to call a change; treat them as noise rather than signal.

scenario:appsec-appsec-enabled-24

  • unstable execution_time [-179.700ms; +176.744ms] or [-6.873%; +6.759%]

scenario:appsec-appsec-enabled-26

  • unstable execution_time [-207.655ms; +210.811ms] or [-8.230%; +8.355%]

scenario:appsec-appsec-enabled-with-attacks-26

  • unstable execution_time [-158094.662µs; +158334.728µs] or [-5.502%; +5.510%]

scenario:appsec-control-20

  • unstable execution_time [-159144.174µs; +160401.474µs] or [-9.135%; +9.208%]

scenario:appsec-control-24

  • unstable execution_time [-107.518ms; +98.726ms] or [-8.859%; +8.135%]

scenario:appsec-control-26

  • unstable execution_time [-113045.953µs; +114321.587µs] or [-9.358%; +9.463%]

scenario:debugger-line-probe-with-snapshot-default-24

  • unstable cpu_user_time [-2356.352ms; +1566.001ms] or [-27.999%; +18.608%]
  • unstable execution_time [-2449.550ms; +1632.448ms] or [-26.916%; +17.938%]
  • unstable instructions [-20.2G instructions; +13.0G instructions] or [-29.411%; +18.883%]
  • unstable throughput [-565.084op/s; +704.348op/s] or [-15.257%; +19.018%]

scenario:debugger-line-probe-with-snapshot-minimal-24

  • unstable cpu_user_time [-1936.084ms; +3153.159ms] or [-24.437%; +39.800%]
  • unstable execution_time [-1963.865ms; +3189.368ms] or [-22.829%; +37.075%]
  • unstable instructions [-16.8G instructions; +26.8G instructions] or [-26.008%; +41.437%]
  • unstable max_rss_usage [-7.178MB; +11.367MB] or [-4.532%; +7.177%]
  • unstable throughput [-924.975op/s; +560.681op/s] or [-24.054%; +14.581%]

scenario:debugger-line-probe-with-snapshot-minimal-26

  • unstable cpu_user_time [-2308.774ms; +706.530ms] or [-24.335%; +7.447%]
  • unstable execution_time [-2317.111ms; +710.949ms] or [-22.784%; +6.991%]
  • unstable instructions [-20.6G instructions; +6.2G instructions] or [-26.021%; +7.853%]
  • unstable throughput [-141.329op/s; +469.744op/s] or [-4.331%; +14.395%]

scenario:debugger-line-probe-without-snapshot-24

  • unstable cpu_user_time [-2.022s; +4.308s] or [-23.771%; +50.639%]
  • unstable execution_time [-2.036s; +4.353s] or [-22.142%; +47.339%]
  • unstable instructions [-17.1G instructions; +36.9G instructions] or [-24.597%; +53.112%]
  • unstable max_rss_usage [-7.061MB; +15.729MB] or [-4.406%; +9.815%]
  • unstable throughput [-1262.895op/s; +594.056op/s] or [-34.422%; +16.192%]

scenario:dogstatsd-with-tags-20

  • unstable cpu_user_time [-308.178ms; +313.780ms] or [-6.531%; +6.650%]
  • unstable execution_time [-310785.729µs; +309051.646µs] or [-6.485%; +6.449%]
  • unstable throughput [-106409.191op/s; +106255.890op/s] or [-6.085%; +6.076%]

scenario:plugin-graphql-long-with-depth-off-20

  • unstable max_rss_usage [-7313.483KB; +6788.340KB] or [-5.649%; +5.244%]

scenario:plugin-graphql-long-with-depth-on-max-20

  • unstable max_rss_usage [-38.764MB; +11.299MB] or [-20.056%; +5.846%]

scenario:spans-finish-later-26

  • unstable max_rss_usage [-5.824MB; +9.313MB] or [-3.952%; +6.320%]

scenario:test-optimization-large-suite-20

  • unstable max_rss_usage [-3.407MB; +6.938MB] or [-4.295%; +8.746%]

@BridgeAR
BridgeAR marked this pull request as draft June 3, 2026 16:42
@BridgeAR
BridgeAR marked this pull request as ready for review June 8, 2026 12:02

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: eaccfa06b3

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread packages/datadog-plugin-graphql/test/config.spec.js

@rochdev rochdev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is working as intended already. Let's document this better instead of adding even more options which could exacerbate confusion.

@BridgeAR
BridgeAR marked this pull request as draft June 8, 2026 12:14
Comment thread packages/datadog-plugin-graphql/src/index.js
tlhunter
tlhunter previously approved these changes Jun 15, 2026
@BridgeAR

Copy link
Copy Markdown
Member Author

This is working as intended already. Let's document this better instead of adding even more options which could exacerbate confusion.

IMO the functionality is quite confusing as is. It is a technical aspect how it currently works without being obviously related to how the query is written. As a user I would strongly favor the change (it also seems evident that users do want this, since there are issues asking for it and people opening PRs to implement it like that).

@BridgeAR
BridgeAR force-pushed the BridgeAR/2026-06-03-graphql-depth-v6-list-index branch from eaccfa0 to b8a5a6d Compare June 27, 2026 05:21
BridgeAR added 2 commits June 27, 2026 07:35
The `depth` filter counted a resolver's full execution path, including the
numeric list indices that `collapse` later folds away. The same query therefore
reached a different depth depending on whether `collapse` was on: a field one
list-hop below the limit was instrumented when collapsing was off and dropped
when it was on, even though both describe the same selection-set nesting.

Count only selection-set segments (string path keys) toward `depth`, so the
limit tracks query structure rather than execution artifacts.

This shifts which resolvers are instrumented at a given `depth`, so it is gated
behind `DD_MAJOR`: the v5 line keeps the old list-index counting when collapsing
is on, and v6 counts selection-set depth only. The `countListIndices` config
flag carries the gate so `shouldInstrumentNode` stays free of version checks.

Fixes: #7468
The depth/collapse decoupling shifts which resolvers are instrumented at a
given `depth` on the v6 line. Record it in MIGRATING.md, and note on the
`depth` type that the limit counts selection-set nesting only, independent of
`collapse`.

Refs: #7468
@BridgeAR
BridgeAR force-pushed the BridgeAR/2026-06-03-graphql-depth-v6-list-index branch from b8a5a6d to 7fa59b5 Compare June 27, 2026 06:28
@BridgeAR
BridgeAR marked this pull request as ready for review June 27, 2026 06:32
The with-depth-on-max variant ran at depth 4. The bench query reaches
selection-set depth 4 but all-nodes depth 6 (the friends and pets lists each
add a numeric index hop). At depth 4 the baseline commit, which counts list
indices, instruments ~101 resolvers while the candidate, which counts only
selection-set segments, instruments all ~1701 — so the A/B compared different
instrumented sets and reported the extra spans as a regression.

Depth 6 clears the all-nodes maximum, so both counting modes instrument the
identical full set and the variant measures per-resolver overhead rather than a
changed workload.

@rochdev rochdev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just realized there was a bug and the expected behaviour was actually not what was going on and this PR fixes this, it doesn't try to change it, so LGTM.

@BridgeAR
BridgeAR merged commit 9af881e into master Jun 29, 2026
1076 of 1077 checks passed
@BridgeAR
BridgeAR deleted the BridgeAR/2026-06-03-graphql-depth-v6-list-index branch June 29, 2026 23:08
@dd-octo-sts dd-octo-sts Bot mentioned this pull request Jul 2, 2026
rochdev pushed a commit that referenced this pull request Jul 2, 2026
The `depth` filter counted a resolver's full execution path, including the
numeric list indices that `collapse` later folds away. The same query therefore
reached a different depth depending on whether `collapse` was on: a field one
list-hop below the limit was instrumented when collapsing was off and dropped
when it was on, even though both describe the same selection-set nesting.

Count only selection-set segments (string path keys) toward `depth`, so the
limit tracks query structure rather than execution artifacts.

This shifts which resolvers are instrumented at a given `depth`, so it is gated
behind `DD_MAJOR`: the v5 line keeps the old list-index counting when collapsing
is on, and v6 counts selection-set depth only. The `countListIndices` config
flag carries the gate so `shouldInstrumentNode` stays free of version checks.

Fixes: #7468
rochdev pushed a commit that referenced this pull request Jul 2, 2026
The `depth` filter counted a resolver's full execution path, including the
numeric list indices that `collapse` later folds away. The same query therefore
reached a different depth depending on whether `collapse` was on: a field one
list-hop below the limit was instrumented when collapsing was off and dropped
when it was on, even though both describe the same selection-set nesting.

Count only selection-set segments (string path keys) toward `depth`, so the
limit tracks query structure rather than execution artifacts.

This shifts which resolvers are instrumented at a given `depth`, so it is gated
behind `DD_MAJOR`: the v5 line keeps the old list-index counting when collapsing
is on, and v6 counts selection-set depth only. The `countListIndices` config
flag carries the gate so `shouldInstrumentNode` stays free of version checks.

Fixes: #7468
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG?]: graphql resolver depth filter depends on path collapsing

3 participants