Validate Plugin Object/Function #6484
Labels
enhancement
For issues that describe a feature that needs to be added, changed, or removed, but is not a bug
Projects
Not so much a bug, but could be a Developer Experience improvement to have some kind of validation around plugins. For example, I was using
graphQl
instead ofgraphQL
in a recent plugin; it took some time to track the issue down. Suggest either adding warning logging to theregisterPlugins
method or validating the plugin contents, perhaps withsimpleSchema
?Not sure which approach is preferred, but happy to take a run at it when I get some time. If you have a preferred approach, let me know.
Prerequisites
Issue Description
Debugging plugin issues can be difficult; plugin validation or more robust logging inside
registerPlugin
could result in a better developer experience.Steps to Reproduce
graphQL
asgraphQl
within the plugin.Possible Solution
registerPlugin
With either of the above,
registerPlugin
could throw an error on a misconfigured plugin.Versions
3.10.0
The text was updated successfully, but these errors were encountered: