consider not deprecating typeInfo and getFieldDef options to validate function and TypeInfo constructor
See original GitHub issuehttps://github.com/graphql/graphql-js/blob/e1726dfea66979bfe7ad1c0b0834613e4b6ce4b4/src/validation/validate.ts#L44-L45 https://github.com/graphql/graphql-js/blob/e1726dfea66979bfe7ad1c0b0834613e4b6ce4b4/src/utilities/TypeInfo.ts#L66-L67
From what I understand, by preserving these options, we add the ability for a server to add custom meta fields such as __fulfilled or __directive and still validate properly.
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:28 (28 by maintainers)
Top Results From Across the Web
api documentation for graphql (v0.9.2)
* * Returns a list of GraphQLError instances describing each deprecated use. */ function findDeprecatedUsages(schema, ast) { var errors = []; var typeInfo...
Read more >graphql@16.6.0 - jsDocs.io
Given a visitor instance, if it is leaving or not, and a node kind, return the function the visitor runtime should call. Deprecated....
Read more >C++ Methods of store type_info objects doesn't work
First off, vexing parse: std::type_info a(int);. a is a function (taking int and returning std::type_info ). Second, std::type_info is not ...
Read more >graphql/utilities
Visitors. class TypeInfo. Tracks type and field definitions during a visitor AST traversal.. Value Validation. function isValidJSValue
Read more >graphql - Awesome JS
Parse, validate, manipulate, and display dates in javascript. ... #3574 Remove deprecated TypeInfo argument of validate function (@IvanGoncharov) ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

As agreed I reverted both PRs until we discussed it on a WG.
Please go ahead, I merged https://github.com/graphql/graphql-js-wg/pull/85 I suggest having two separate discussions:
getFieldDef?I think we need a policy on question 1 since we already had a similar discussion about adding hooks to the parser, executor, etc. Otherwise, we will have this type of disagreement every time someone wants to add or remove a legacy hook (we still have a few of them).
@yaacovCR This hook was clearly marked as “experimental” and later “deprecated”. Moreover, before deprecation, it said “You should never need to use it.”. Please see: https://github.com/graphql/graphql-js/commit/825ebd312269decd0ac3872a3346d85d5cb6e262#
So no replacements were promised. If this feature had a use case for “spec compliant” implementation it made sense to provide some alternative but from what I see it doesn’t. Moreover, I reconsider my position and think that by providing “compromise functionality” we just shifting this discussion down the road.
So instead of mixing two discussions, I want to solve the core question we have at hand: Is supporting non-compliant GraphQL implementations a valid use case for
graphql-js? I added a separate agenda item to discuss just it. I don’t think discussing the technicalities ofgetFieldDefFnmakes sense before we have the answer to that question.