Add type annotations to graphql resolvers
What does this MR do?
This adds missing type annotations to some GraphQL resolver, and corrects some incorrect ones. Where sensible, some classes have the Graphql/ResolverType cop disabled (with a note added why).
Code duplication in some places is reduced by allowing resolvers to provide the field options.
See: #281697 (closed)
As a developer facing change, no Changelog entry is needed:
Does this MR meet the acceptance criteria?
Conformity
- [-] Changelog entry
-
Documentation (if required) -
Code review guidelines -
Merge request performance guidelines -
Style guides -
Database guides -
Separation of EE specific content
Availability and Testing
-
Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process.
Edited by Alex Kalderimis