René's URL Explorer Experiment


Title: Use shared coercion and located errors for @skip and @include by andimarek · Pull Request #4541 · graphql-java/graphql-java · GitHub

Open Graph Title: Use shared coercion and located errors for @skip and @include by andimarek · Pull Request #4541 · graphql-java/graphql-java

X Title: Use shared coercion and located errors for @skip and @include by andimarek · Pull Request #4541 · graphql-java/graphql-java

Description: A nullable variable with a non-null default can legally be used in @skip(if:) or @include(if:). Passing explicit null overrides that default and currently causes an uncaught null-unboxing exception: query ($flag: Boolean = true) { good parent { child @skip(if: $flag) } } With {"flag": null} and a nullable parent, this now returns {"good": ..., "parent": null} plus an error located at $flag, with path ["parent"]. Resolve conditional directive arguments through ValuesResolver.getArgumentValues(), reusing the existing Boolean! coercion rules. Report root collection failures with data: null; nested failures preserve siblings and follow normal non-null propagation. Include the directive name, argument source location, and enclosing field path where applicable. Return subscription event errors without terminating the stream, preserving event extensions. Retain the original error during deferred non-null propagation. Preserve Boolean defaults/values, skip short-circuiting, and unknown-variable normalization. Alternative to #4540: avoids an execution-wide AbortExecutionException. Complements #4522, which handles field arguments before invoking data fetchers; conditional directives are evaluated during field collection. Validation: 57 new Spock cases cover queries, mutations, fragments, aliases, lists, async fetchers, subscriptions, defer, instrumentation, normalization, and all three DataLoader dispatch modes. ./gradlew --no-daemon test testng jacocoTestReport javadoc passes on Java 25 (6,352 cases, no failures). No per-class coverage regressions against test-baseline.json; the baseline is unchanged.

Open Graph Description: A nullable variable with a non-null default can legally be used in @skip(if:) or @include(if:). Passing explicit null overrides that default and currently causes an uncaught null-unboxing exception...

X Description: A nullable variable with a non-null default can legally be used in @skip(if:) or @include(if:). Passing explicit null overrides that default and currently causes an uncaught null-unboxing exception...

Opengraph URL: https://github.com/graphql-java/graphql-java/pull/4541

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:b029bfdd-24c0-c48f-6311-f01dedf93c8d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE0E2:38E318:18A981B:1F1BB81:6B017C6C
html-safe-nonce98c01b4d8779fa07f37be6ac5f09b7b858cf1a3ca94b08ac94c4714a50b34b19
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMEUyOjM4RTMxODoxOEE5ODFCOjFGMUJCODE6NkIwMTdDNkMiLCJ2aXNpdG9yX2lkIjoiNjkxMDE4NDYzOTY1NTE0ODY1MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac05c120ecd8fe8c18013904f09e345c7db79ae7bb6cc772984a149d05e88eab91
hovercard-subject-tagpull_request:5186111033
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/graphql-java/graphql-java/pull/4541/files
twitter:imagehttps://avatars.githubusercontent.com/u/1706744?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1706744?s=400&v=4
og:image:altA nullable variable with a non-null default can legally be used in @skip(if:) or @include(if:). Passing explicit null overrides that default and currently causes an uncaught null-unboxing exception...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/graphql-java/graphql-java git https://github.com/graphql-java/graphql-java.git
octolytics-dimension-user_id14289921
octolytics-dimension-user_logingraphql-java
octolytics-dimension-repository_id38602457
octolytics-dimension-repository_nwographql-java/graphql-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id38602457
octolytics-dimension-repository_network_root_nwographql-java/graphql-java
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/graphql-java/graphql-java/pull/4541/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgraphql-java%2Fgraphql-java%2Fpull%2F4541%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgraphql-java%2Fgraphql-java%2Fpull%2F4541%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=graphql-java%2Fgraphql-java
Reloadhttps://github.com/graphql-java/graphql-java/pull/4541/files
Reloadhttps://github.com/graphql-java/graphql-java/pull/4541/files
Reloadhttps://github.com/graphql-java/graphql-java/pull/4541/files
graphql-javahttps://github.com/graphql-java
graphql-javahttps://github.com/graphql-java/graphql-java
Codehttps://github.com/graphql-java/graphql-java
Issues27 (27)https://github.com/graphql-java/graphql-java/issues
Pull requests35 (35)https://github.com/graphql-java/graphql-java/pulls
Discussionshttps://github.com/graphql-java/graphql-java/discussions
Actionshttps://github.com/graphql-java/graphql-java/actions
Projectshttps://github.com/graphql-java/graphql-java/projects
Wikihttps://github.com/graphql-java/graphql-java/wiki
Security and qualityhttps://github.com/graphql-java/graphql-java/security
Insightshttps://github.com/graphql-java/graphql-java/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fgraphql-java%2Fgraphql-java%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fgraphql-java%2Fgraphql-java%2Fissues%2Fnew%2Fchoose
andimarekhttps://github.com/andimarek
masterhttps://github.com/graphql-java/graphql-java/tree/master
codex/conditional-directive-coercionhttps://github.com/graphql-java/graphql-java/tree/codex/conditional-directive-coercion
Conversation 1 https://github.com/graphql-java/graphql-java/pull/4541
Commits 1 https://github.com/graphql-java/graphql-java/pull/4541/commits
Checks 10 https://github.com/graphql-java/graphql-java/pull/4541/checks
Files changed https://github.com/graphql-java/graphql-java/pull/4541/files
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/4541/files
Use shared coercion and located errors for @skip and @include https://github.com/graphql-java/graphql-java/pull/4541/files#top
Show all changes 1 commit https://github.com/graphql-java/graphql-java/pull/4541/files
186e643 Coerce conditional directive arguments and preserve execution error c… andimarek Nov 6, 2026 https://github.com/graphql-java/graphql-java/pull/4541/commits/186e643f15c822dbaeea30d11b4afdea5b7f297c
Clear filters https://github.com/graphql-java/graphql-java/pull/4541/files
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/4541/files
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/4541/files
Execution.java https://github.com/graphql-java/graphql-java/pull/4541/files#diff-77b0941964d82259078eaf0ecfadd7e6625aa91dfe5c9195f416cab5b8f5970e
ExecutionStrategy.java https://github.com/graphql-java/graphql-java/pull/4541/files#diff-2ece51452808f5a3fd08db50de534a12806aa6cd4e236c549dff9759884e43ff
SubscriptionExecutionStrategy.java https://github.com/graphql-java/graphql-java/pull/4541/files#diff-da691711ac23bdc55fd1249f5b2730f7cc880ce1fa553e17af2bb1fac9fdb62f
ConditionalDirectiveCoercionException.java https://github.com/graphql-java/graphql-java/pull/4541/files#diff-b7d2c32c83edb7a3aa890b16cadee1dfea6b7a784b6c2509139708f930142ee2
ConditionalNodes.java https://github.com/graphql-java/graphql-java/pull/4541/files#diff-3cddf1463492bc8b488471bfe4347928e3a22620b0d1c71e76127366bbb0fe8f
DeferredFragmentCall.java https://github.com/graphql-java/graphql-java/pull/4541/files#diff-03b792e8b5037aa556d8be120186e40afba2d0d65c9344129bb110d0e454fac9
ConditionalDirectiveCoercionTest.groovy https://github.com/graphql-java/graphql-java/pull/4541/files#diff-c112d38d4d21c1902cd903c1064937e3f16f90bb7dcd56ad239e2580aadd7be6
src/main/java/graphql/execution/Execution.javahttps://github.com/graphql-java/graphql-java/pull/4541/files#diff-77b0941964d82259078eaf0ecfadd7e6625aa91dfe5c9195f416cab5b8f5970e
View file https://github.com/graphql-java/graphql-java/blob/186e643f15c822dbaeea30d11b4afdea5b7f297c/src/main/java/graphql/execution/Execution.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/graphql-java/graphql-java/pull/4541/{{ revealButtonHref }}
https://github.com/graphql-java/graphql-java/pull/4541/files#diff-77b0941964d82259078eaf0ecfadd7e6625aa91dfe5c9195f416cab5b8f5970e
https://github.com/graphql-java/graphql-java/pull/4541/files#diff-77b0941964d82259078eaf0ecfadd7e6625aa91dfe5c9195f416cab5b8f5970e
https://github.com/graphql-java/graphql-java/pull/4541/files#diff-77b0941964d82259078eaf0ecfadd7e6625aa91dfe5c9195f416cab5b8f5970e
https://github.com/graphql-java/graphql-java/pull/4541/files#diff-77b0941964d82259078eaf0ecfadd7e6625aa91dfe5c9195f416cab5b8f5970e
src/main/java/graphql/execution/ExecutionStrategy.javahttps://github.com/graphql-java/graphql-java/pull/4541/files#diff-2ece51452808f5a3fd08db50de534a12806aa6cd4e236c549dff9759884e43ff
View file https://github.com/graphql-java/graphql-java/blob/186e643f15c822dbaeea30d11b4afdea5b7f297c/src/main/java/graphql/execution/ExecutionStrategy.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/graphql-java/graphql-java/pull/4541/{{ revealButtonHref }}
https://github.com/graphql-java/graphql-java/pull/4541/files#diff-2ece51452808f5a3fd08db50de534a12806aa6cd4e236c549dff9759884e43ff
https://github.com/graphql-java/graphql-java/pull/4541/files#diff-2ece51452808f5a3fd08db50de534a12806aa6cd4e236c549dff9759884e43ff
https://github.com/graphql-java/graphql-java/pull/4541/files#diff-2ece51452808f5a3fd08db50de534a12806aa6cd4e236c549dff9759884e43ff
https://github.com/graphql-java/graphql-java/pull/4541/files#diff-2ece51452808f5a3fd08db50de534a12806aa6cd4e236c549dff9759884e43ff
https://github.com/graphql-java/graphql-java/pull/4541/files#diff-2ece51452808f5a3fd08db50de534a12806aa6cd4e236c549dff9759884e43ff
src/main/java/graphql/execution/SubscriptionExecutionStrategy.javahttps://github.com/graphql-java/graphql-java/pull/4541/files#diff-da691711ac23bdc55fd1249f5b2730f7cc880ce1fa553e17af2bb1fac9fdb62f
View file https://github.com/graphql-java/graphql-java/blob/186e643f15c822dbaeea30d11b4afdea5b7f297c/src/main/java/graphql/execution/SubscriptionExecutionStrategy.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/graphql-java/graphql-java/pull/4541/{{ revealButtonHref }}
https://github.com/graphql-java/graphql-java/pull/4541/files#diff-da691711ac23bdc55fd1249f5b2730f7cc880ce1fa553e17af2bb1fac9fdb62f
https://github.com/graphql-java/graphql-java/pull/4541/files#diff-da691711ac23bdc55fd1249f5b2730f7cc880ce1fa553e17af2bb1fac9fdb62f
https://github.com/graphql-java/graphql-java/pull/4541/files#diff-da691711ac23bdc55fd1249f5b2730f7cc880ce1fa553e17af2bb1fac9fdb62f
https://github.com/graphql-java/graphql-java/pull/4541/files#diff-da691711ac23bdc55fd1249f5b2730f7cc880ce1fa553e17af2bb1fac9fdb62f
https://github.com/graphql-java/graphql-java/pull/4541/files#diff-da691711ac23bdc55fd1249f5b2730f7cc880ce1fa553e17af2bb1fac9fdb62f
src/main/java/graphql/execution/conditional/ConditionalDirectiveCoercionException.javahttps://github.com/graphql-java/graphql-java/pull/4541/files#diff-b7d2c32c83edb7a3aa890b16cadee1dfea6b7a784b6c2509139708f930142ee2
View file https://github.com/graphql-java/graphql-java/blob/186e643f15c822dbaeea30d11b4afdea5b7f297c/src/main/java/graphql/execution/conditional/ConditionalDirectiveCoercionException.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/graphql-java/graphql-java/pull/4541/{{ revealButtonHref }}
src/main/java/graphql/execution/conditional/ConditionalNodes.javahttps://github.com/graphql-java/graphql-java/pull/4541/files#diff-3cddf1463492bc8b488471bfe4347928e3a22620b0d1c71e76127366bbb0fe8f
View file https://github.com/graphql-java/graphql-java/blob/186e643f15c822dbaeea30d11b4afdea5b7f297c/src/main/java/graphql/execution/conditional/ConditionalNodes.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/graphql-java/graphql-java/pull/4541/{{ revealButtonHref }}
https://github.com/graphql-java/graphql-java/pull/4541/files#diff-3cddf1463492bc8b488471bfe4347928e3a22620b0d1c71e76127366bbb0fe8f
https://github.com/graphql-java/graphql-java/pull/4541/files#diff-3cddf1463492bc8b488471bfe4347928e3a22620b0d1c71e76127366bbb0fe8f
https://github.com/graphql-java/graphql-java/pull/4541/files#diff-3cddf1463492bc8b488471bfe4347928e3a22620b0d1c71e76127366bbb0fe8f
https://github.com/graphql-java/graphql-java/pull/4541/files#diff-3cddf1463492bc8b488471bfe4347928e3a22620b0d1c71e76127366bbb0fe8f
https://github.com/graphql-java/graphql-java/pull/4541/files#diff-3cddf1463492bc8b488471bfe4347928e3a22620b0d1c71e76127366bbb0fe8f
https://github.com/graphql-java/graphql-java/pull/4541/files#diff-3cddf1463492bc8b488471bfe4347928e3a22620b0d1c71e76127366bbb0fe8f
https://github.com/graphql-java/graphql-java/pull/4541/files#diff-3cddf1463492bc8b488471bfe4347928e3a22620b0d1c71e76127366bbb0fe8f
src/main/java/graphql/execution/incremental/DeferredFragmentCall.javahttps://github.com/graphql-java/graphql-java/pull/4541/files#diff-03b792e8b5037aa556d8be120186e40afba2d0d65c9344129bb110d0e454fac9
View file https://github.com/graphql-java/graphql-java/blob/186e643f15c822dbaeea30d11b4afdea5b7f297c/src/main/java/graphql/execution/incremental/DeferredFragmentCall.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/graphql-java/graphql-java/pull/4541/{{ revealButtonHref }}
https://github.com/graphql-java/graphql-java/pull/4541/files#diff-03b792e8b5037aa556d8be120186e40afba2d0d65c9344129bb110d0e454fac9
https://github.com/graphql-java/graphql-java/pull/4541/files#diff-03b792e8b5037aa556d8be120186e40afba2d0d65c9344129bb110d0e454fac9
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/4541/files
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/4541/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.