Title: Add validation to detect when datafetchers wired on interfaces · Issue #3841 · graphql-java/graphql-java · GitHub
Open Graph Title: Add validation to detect when datafetchers wired on interfaces · Issue #3841 · graphql-java/graphql-java
X Title: Add validation to detect when datafetchers wired on interfaces · Issue #3841 · graphql-java/graphql-java
Description: A validation idea from @bbakerman Because type wiring is registered by string name, we allow a data fetcher registration to a field in an interface type because as the time of pre schema building, we don't know its an interface. I guess ...
Open Graph Description: A validation idea from @bbakerman Because type wiring is registered by string name, we allow a data fetcher registration to a field in an interface type because as the time of pre schema building, ...
X Description: A validation idea from @bbakerman Because type wiring is registered by string name, we allow a data fetcher registration to a field in an interface type because as the time of pre schema building, ...
Opengraph URL: https://github.com/graphql-java/graphql-java/issues/3841
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add validation to detect when datafetchers wired on interfaces","articleBody":"A validation idea from @bbakerman \n\n> Because type wiring is registered by string name, we allow a data fetcher registration to a field in an interface type because as the time of pre schema building, we don't know its an interface. I guess with more work we could \"validate\" this once we have the real schema in place and we know all the types\n\nInvestigate if we can validate that datafetchers are only wired on concrete types\n\nPotential idea\n> allow RuntimeWiring building as we have it day (since we have no schema elements yet)\nthen at \"schema generation time\" we validate that the values in the `graphql.schema.GraphQLCodeRegistry` make sense\neg data fetchers only on fields of a concrete type\ntype resolvers ONLY on non concrete type\nall non concrete types have a type resolver\netc...","author":{"url":"https://github.com/dondonz","@type":"Person","name":"dondonz"},"datePublished":"2025-03-02T22:11:58Z","url":"https://github.com/graphql-java/graphql-java/issues/3841"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:65649304-c3f2-6c24-d504-248e34d72ce0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DA0C:B53AF:1F2612C:2968931:6B017650 |
| html-safe-nonce | d84e2197d10b45a8f4a5c0b8420a64e67c1e9d1479fb5da20479f7a52082856d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTBDOkI1M0FGOjFGMjYxMkM6Mjk2ODkzMTo2QjAxNzY1MCIsInZpc2l0b3JfaWQiOiI1NTI2NDg3MzYxMDQ4OTAxMjAwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | cb1936073eb518f36227d4deee8a7280239273cae5e44aeb635a985b8ab8e742 |
| hovercard-subject-tag | issue:2889821382 |
| 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/3841/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a41920994b044d5afccc7fe242b013fc347f9addbf3da7c03bb9e7dcf3684a21/graphql-java/graphql-java/issues/3841 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a41920994b044d5afccc7fe242b013fc347f9addbf3da7c03bb9e7dcf3684a21/graphql-java/graphql-java/issues/3841 |
| og:image:alt | A validation idea from @bbakerman Because type wiring is registered by string name, we allow a data fetcher registration to a field in an interface type because as the time of pre schema building, ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dondonz |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width