Add GraphQL resolver for groups and projects query
What does this MR do and why?
Dependent on !202684 (merged)
Related to #516305 (closed)
We are working to migrate group and project lists to shared Vue components. This will give us consistent UX across the product and help reduce technical debit. Currently we are working on group overview in &13790 (closed). For the Subgroups and projects tab we will be using an internal REST API (/groups/foo/-/children.json) and then mapping the response to GraphQL format via a resolver. There are a few reasons for this:
- GraphQL query with this nested structure is tricky and needs more discovery
- We already have this endpoint so makes sense to use for now
- By mapping to a GraphQL format we can use the shared Vue components in multiple places with different data sources
In !202982 (merged) we will use the resolver.
References
Screenshots or screen recordings
No visual changes
How to set up and validate locally
yarn jest spec/frontend/groups/show/graphql/resolvers_spec.js
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.