-
I want to start logging usage of deprecated fields and types. What's the best way to do this? My idea was to wrap all field resolvers and inspect the 4rd Then log when But I feel there must be a better way to do this. Any suggestions? |
Beta Was this translation helpful? Give feedback.
Answered by
spawnia
Mar 28, 2022
Replies: 1 comment 1 reply
-
In Lighthouse this is implemented as a validation rule - see https://github.com/nuwave/lighthouse/blob/e09943d8abc786cd266f4837ade0239fb508164c/src/Deprecation/DetectDeprecatedUsage.php |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ruudk
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In Lighthouse this is implemented as a validation rule - see https://github.com/nuwave/lighthouse/blob/e09943d8abc786cd266f4837ade0239fb508164c/src/Deprecation/DetectDeprecatedUsage.php