Title: SchemaUtil#replaceTypeReferences Issue When trying to re-built a GraphqlSchema · Issue #3384 · graphql-java/graphql-java · GitHub
Open Graph Title: SchemaUtil#replaceTypeReferences Issue When trying to re-built a GraphqlSchema · Issue #3384 · graphql-java/graphql-java
X Title: SchemaUtil#replaceTypeReferences Issue When trying to re-built a GraphqlSchema · Issue #3384 · graphql-java/graphql-java
Description: Describe the bug graphql.schema.impl.SchemaUtil#replaceTypeReferences is breaking , when we are trying to re build the schema. Issue occurring case : When we traverse through a GraphqlObject node which has its interfaces resolved (replac...
Open Graph Description: Describe the bug graphql.schema.impl.SchemaUtil#replaceTypeReferences is breaking , when we are trying to re build the schema. Issue occurring case : When we traverse through a GraphqlObject node w...
X Description: Describe the bug graphql.schema.impl.SchemaUtil#replaceTypeReferences is breaking , when we are trying to re build the schema. Issue occurring case : When we traverse through a GraphqlObject node w...
Opengraph URL: https://github.com/graphql-java/graphql-java/issues/3384
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SchemaUtil#replaceTypeReferences Issue When trying to re-built a GraphqlSchema","articleBody":"**Describe the bug**\r\n\r\ngraphql.schema.impl.SchemaUtil#replaceTypeReferences is breaking , when we are trying to re build the schema.\r\n\r\nIssue occurring case : \r\n\r\nWhen we traverse through a GraphqlObject node which has its interfaces resolved (replacedInterfaces!=null), those interfaces wont get registered into typeMap , as we are using \r\n```java\r\nSchemaTraverser schemaTraverser = new SchemaTraverser(schemaElement -> schemaElement.getChildrenWithTypeReferences().getChildrenAsList());\r\n```\r\n\r\nat later step when `replaceTypeReferences` tries to resolve graphqlobejcts interface types at method `graphql.schema.GraphQLTypeResolvingVisitor#visitGraphQLObjectType` of a resolved GraphqlObject node ( which have its resolved interfaces ) . it fails to resolve as there is not such interface registered in typeMap.\r\n\r\n**To Reproduce**\r\none case where its necessary to rebuild an already built schema is while trying to create a readOnly Schema\r\n`GraphQLSchema.newSchema(schema).mutation((GraphQLObjectType) null).build()`","author":{"url":"https://github.com/night-crawlr","@type":"Person","name":"night-crawlr"},"datePublished":"2023-11-30T07:13:27Z","url":"https://github.com/graphql-java/graphql-java/issues/3384"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3f4bc65c-5ef6-de0d-dc13-b9a5e174ebde |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B98E:2E36DC:1839B1:20EA80:6AED422C |
| html-safe-nonce | 066bdd57ce57c517d821959cca3c253894f5b0eb0d556f3fc470ad95aa3507ba |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOThFOjJFMzZEQzoxODM5QjE6MjBFQTgwOjZBRUQ0MjJDIiwidmlzaXRvcl9pZCI6IjQyNjM3Njg0OTY0NDE5OTk5MTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 74eb2e5f42b46b3c682ab9c0f357c7da714fe975c2afeeb5acf0b4525b0019a2 |
| hovercard-subject-tag | issue:2018022834 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/graphql-java/graphql-java/3384/issue_layout |
| twitter:image | https://opengraph.githubassets.com/12b410ef64fb8905ffa7719f9c57012b000ccbbf5168a331d96208b13f4a54ba/graphql-java/graphql-java/issues/3384 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/12b410ef64fb8905ffa7719f9c57012b000ccbbf5168a331d96208b13f4a54ba/graphql-java/graphql-java/issues/3384 |
| og:image:alt | Describe the bug graphql.schema.impl.SchemaUtil#replaceTypeReferences is breaking , when we are trying to re build the schema. Issue occurring case : When we traverse through a GraphqlObject node w... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | night-crawlr |
| hostname | github.com |
| expected-hostname | github.com |
| None | 26c92a9388ddfad3fa88d132b5d5f0b4747030233dcc4e5efb05f1cbae152184 |
| turbo-cache-control | no-preview |
| go-import | github.com/graphql-java/graphql-java git https://github.com/graphql-java/graphql-java.git |
| octolytics-dimension-user_id | 14289921 |
| octolytics-dimension-user_login | graphql-java |
| octolytics-dimension-repository_id | 38602457 |
| octolytics-dimension-repository_nwo | graphql-java/graphql-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 38602457 |
| octolytics-dimension-repository_network_root_nwo | graphql-java/graphql-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c629ad99c254d306375fc8354d04321c2c362236 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width