consider not deprecating typeInfo and getFieldDef options to validate function and TypeInfo constructor
Problem
https://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.
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: consider not deprecating typeInfo and getFieldDef options to validate function and TypeInfo constructor
Maybe if there is not consensus we can discuss further at next js wg?
Trust Score
2 verifications
- 1
Maybe if there is not consensus we can discuss further at next js wg?
Maybe if there is not consensus we can discuss further at next js wg?
Validation
Resolved in graphql/graphql-js GitHub issue #3519. Community reactions: 1 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep