Title: How to use LegacyCoercingInputInterceptor in v22 · graphql-java/graphql-java · Discussion #3594 · GitHub
Open Graph Title: How to use LegacyCoercingInputInterceptor in v22 · graphql-java/graphql-java · Discussion #3594
X Title: How to use LegacyCoercingInputInterceptor in v22 · graphql-java/graphql-java · Discussion #3594
Description: How to use LegacyCoercingInputInterceptor in v22
Open Graph Description: It seems v21 uses this by default, but I can't figure out how to enable the LegacyCoercingInputInterceptor in v22.
X Description: It seems v21 uses this by default, but I can't figure out how to enable the LegacyCoercingInputInterceptor in v22.
Opengraph URL: https://github.com/graphql-java/graphql-java/discussions/3594
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"QAPage","mainEntity":{"@type":"Question","name":"How to use LegacyCoercingInputInterceptor in v22","text":"It seems v21 uses this by default, but I can't figure out how to enable the LegacyCoercingInputInterceptor in v22.
","upvoteCount":2,"answerCount":3,"acceptedAnswer":{"@type":"Answer","text":"The code that uses this callback is still in place in V22 - but it being on by default has changed
\nthe value conversion code does
\nInputInterceptor inputInterceptor = graphqlContext.get(InputInterceptor.class);\n
\nSo you need to place a LegacyCoercingInputInterceptor into the requests graphql.GraphQLContext under the key graphql.execution.values.InputInterceptor class.
\nIt will then run that code during value conversion
\nThe reason it was removed in the V22 breaking change version is that we wanted to move to a more spec compliant value conversion and the breaking change version was the time to do it. We knew it may hurt some people relying on old value shapes so we pre built this conversion callback to allow people to go back to the old ways if need be
","upvoteCount":1,"url":"https://github.com/graphql-java/graphql-java/discussions/3594#discussioncomment-9428519"}}}
| route-pattern | /_view_fragments/Voltron::DiscussionsFragmentsController/show/:user_id/:repository/:discussion_number/discussion_layout(.:format) |
| route-controller | voltron_discussions_fragments |
| route-action | discussion_layout |
| fetch-nonce | v2:f2bb4cbc-748e-695d-0c89-6e3b1f3ae933 |
| current-catalog-service-hash | 9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be |
| request-id | BDAC:22B5C:CE5B5A:124A67F:696FBB28 |
| html-safe-nonce | d1e848f61438c2b345a0979cd341aaf249018aecbac2f4faa97baa2eba16fe2a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCREFDOjIyQjVDOkNFNUI1QToxMjRBNjdGOjY5NkZCQjI4IiwidmlzaXRvcl9pZCI6IjU5MTgyNjIzMjQ4Njk3MDg1ODQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b97eee4ed1eb2c52316281d1a68a568adeeaea6b67efa5344b22c891d341d11a |
| hovercard-subject-tag | discussion:6659879 |
| github-keyboard-shortcuts | repository,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/Voltron::DiscussionsFragmentsController/show/graphql-java/graphql-java/3594/discussion_layout |
| twitter:image | https://opengraph.githubassets.com/e944786190fc8c69c19d8dc0cb7f451dc956bc745ac0d7c723180e22d3b2dae3/graphql-java/graphql-java/discussions/3594 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e944786190fc8c69c19d8dc0cb7f451dc956bc745ac0d7c723180e22d3b2dae3/graphql-java/graphql-java/discussions/3594 |
| og:image:alt | It seems v21 uses this by default, but I can't figure out how to enable the LegacyCoercingInputInterceptor in v22. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 40ce4030a7db32193be29054756ed7f7eceec3a82973f060300035bdff8cf777 |
| 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 | 1cdcabe0d7ddc4be91a713d57280849e4c89f5cd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width