René's URL Explorer Experiment


Title: Edge case with GraphQLTypeReference and Schema Transforms by xuorig · Pull Request #2905 · graphql-java/graphql-java · GitHub

Open Graph Title: Edge case with GraphQLTypeReference and Schema Transforms by xuorig · Pull Request #2905 · graphql-java/graphql-java

X Title: Edge case with GraphQLTypeReference and Schema Transforms by xuorig · Pull Request #2905 · graphql-java/graphql-java

Description: 👋 Hello I've hit a pretty interesting edge case with GraphQLSchema#transform. We use it to do some schema filtering and noticed a failure when combined with recursive types using GraphQLTypeReference. When a part of the schema holding the "true" reference to a GraphQL object type is removed, if there are GraphQLTypeReferences remaining in the rest of the schema, they won't be able to be resolved. The original type won't be in the type map anymore because the new type map is regenerated from the trasnformed schema tree (https://github.com/graphql-java/graphql-java/blob/master/src/main/java/graphql/schema/GraphQLSchema.java#L916) I've included a test that reproduces the issue. It's possible to mitigate the issue by re-injecting those types through additionalTypes, but I'd like your thoughts if this would deserve handling at the graphql-java level, or you think it's best left to the user to avoid / mitigate the issue from happening. Happy to contribute a fix if this is worthwhile, but feel free to close if this is a no-fix.

Open Graph Description: 👋 Hello I've hit a pretty interesting edge case with GraphQLSchema#transform. We use it to do some schema filtering and noticed a failure when combined with recursive types using GraphQLTypeRef...

X Description: 👋 Hello I've hit a pretty interesting edge case with GraphQLSchema#transform. We use it to do some schema filtering and noticed a failure when combined with recursive types using GraphQLTyp...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:2dab947c-75af-66d8-13f9-0fba92494de3
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB530:37F8F:7E90A0:AF2185:6A604007
html-safe-nonce9da65bf58be1b85e952c458153b2c70927d559341afb110a30311e6e91725906
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNTMwOjM3RjhGOjdFOTBBMDpBRjIxODU6NkE2MDQwMDciLCJ2aXNpdG9yX2lkIjoiNzI4NDE4ODA2ODIwMjk1NDc1OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac75fac8512f5ed3b809b0db440e7d4a29f3eba6040b1bcff2531da2a44178a29e
hovercard-subject-tagpull_request:1012370303
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/2905/files
twitter:imagehttps://avatars.githubusercontent.com/u/1919498?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1919498?s=400&v=4
og:image:alt👋 Hello I've hit a pretty interesting edge case with GraphQLSchema#transform. We use it to do some schema filtering and noticed a failure when combined with recursive types using GraphQLTypeRef...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None60da8c2a42fa2bbf5f7567474990ec467836a84444262a58e200fa91b7f3d2d0
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
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9824515e740d83d5eb82168a089b806ab0fe04a1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/graphql-java/graphql-java/pull/2905/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgraphql-java%2Fgraphql-java%2Fpull%2F2905%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgraphql-java%2Fgraphql-java%2Fpull%2F2905%2Ffiles
Sign up https://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/2905/files
Reloadhttps://github.com/graphql-java/graphql-java/pull/2905/files
Reloadhttps://github.com/graphql-java/graphql-java/pull/2905/files
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/2905/files
graphql-java https://github.com/graphql-java
graphql-javahttps://github.com/graphql-java/graphql-java
Notifications https://github.com/login?return_to=%2Fgraphql-java%2Fgraphql-java
Fork 1.1k https://github.com/login?return_to=%2Fgraphql-java%2Fgraphql-java
Star 6.2k https://github.com/login?return_to=%2Fgraphql-java%2Fgraphql-java
Code https://github.com/graphql-java/graphql-java
Issues 26 https://github.com/graphql-java/graphql-java/issues
Pull requests 11 https://github.com/graphql-java/graphql-java/pulls
Discussions https://github.com/graphql-java/graphql-java/discussions
Actions https://github.com/graphql-java/graphql-java/actions
Projects https://github.com/graphql-java/graphql-java/projects
Wiki https://github.com/graphql-java/graphql-java/wiki
Security and quality 0 https://github.com/graphql-java/graphql-java/security
Insights https://github.com/graphql-java/graphql-java/pulse
Code https://github.com/graphql-java/graphql-java
Issues https://github.com/graphql-java/graphql-java/issues
Pull requests https://github.com/graphql-java/graphql-java/pulls
Discussions https://github.com/graphql-java/graphql-java/discussions
Actions https://github.com/graphql-java/graphql-java/actions
Projects https://github.com/graphql-java/graphql-java/projects
Wiki https://github.com/graphql-java/graphql-java/wiki
Security and quality https://github.com/graphql-java/graphql-java/security
Insights https://github.com/graphql-java/graphql-java/pulse
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
xuorighttps://github.com/xuorig
graphql-java:masterhttps://github.com/graphql-java/graphql-java/tree/master
xuorig:repro-type-reference-issuehttps://github.com/xuorig/graphql-java/tree/repro-type-reference-issue
Conversation 8 https://github.com/graphql-java/graphql-java/pull/2905
Commits 1 https://github.com/graphql-java/graphql-java/pull/2905/commits
Checks 0 https://github.com/graphql-java/graphql-java/pull/2905/checks
Files changed https://github.com/graphql-java/graphql-java/pull/2905/files
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/2905/files
Edge case with GraphQLTypeReference and Schema Transforms https://github.com/graphql-java/graphql-java/pull/2905/files#top
Show all changes 1 commit https://github.com/graphql-java/graphql-java/pull/2905/files
9cd28ff add a test to reproduce GraphQLTypeReference issue in transforms Jul 29, 2022 https://github.com/graphql-java/graphql-java/pull/2905/commits/9cd28ff9053a59683363bb045a9342fa710268d3
Clear filters https://github.com/graphql-java/graphql-java/pull/2905/files
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/2905/files
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/2905/files
src/test/groovy/graphql/schema/GraphQLSchemaTest.groovyhttps://github.com/graphql-java/graphql-java/pull/2905/files#diff-43a01a2422fefa32ed4d16f51f6a540ea267511640d05da61d364c9c7c5fee29
View file https://github.com/xuorig/graphql-java/blob/9cd28ff9053a59683363bb045a9342fa710268d3/src/test/groovy/graphql/schema/GraphQLSchemaTest.groovy
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/graphql-java/graphql-java/pull/2905/{{ revealButtonHref }}
https://github.com/graphql-java/graphql-java/pull/2905/files#diff-43a01a2422fefa32ed4d16f51f6a540ea267511640d05da61d364c9c7c5fee29
https://github.com/graphql-java/graphql-java/pull/2905/files#diff-43a01a2422fefa32ed4d16f51f6a540ea267511640d05da61d364c9c7c5fee29
https://github.com/graphql-java/graphql-java/pull/2905/files#diff-43a01a2422fefa32ed4d16f51f6a540ea267511640d05da61d364c9c7c5fee29
https://github.com/graphql-java/graphql-java/pull/2905/files#diff-43a01a2422fefa32ed4d16f51f6a540ea267511640d05da61d364c9c7c5fee29
bbakermanhttps://github.com/bbakerman
Jul 31, 2022https://github.com/graphql-java/graphql-java/pull/2905/files#r933963556
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/2905/files
xuorighttps://github.com/xuorig
Jul 31, 2022https://github.com/graphql-java/graphql-java/pull/2905/files#r933981874
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/2905/files
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/2905/files
andimarekhttps://github.com/andimarek
Aug 2, 2022https://github.com/graphql-java/graphql-java/pull/2905/files#r935098350
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/2905/files
bbakermanhttps://github.com/bbakerman
Jul 31, 2022https://github.com/graphql-java/graphql-java/pull/2905/files#r933963758
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/2905/files
bbakermanhttps://github.com/bbakerman
Jul 31, 2022https://github.com/graphql-java/graphql-java/pull/2905/files#r933965354
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://www.graphql-java.com/documentation/schemahttps://www.graphql-java.com/documentation/schema
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/2905/files
bbakermanhttps://github.com/bbakerman
Jul 31, 2022https://github.com/graphql-java/graphql-java/pull/2905/files#r933966883
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#2906https://github.com/graphql-java/graphql-java/pull/2906
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/2905/files
https://github.com/graphql-java/graphql-java/pull/2905/files#diff-43a01a2422fefa32ed4d16f51f6a540ea267511640d05da61d364c9c7c5fee29
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.