Reduce GraphQL query complexity for security inventory query

Overview

The security inventory GraphQL query is exceeding the complexity limit and needs to be optimized.

Query to optimize:

  • ee/app/assets/javascripts/security_inventory/graphql/subgroups_and_projects.query.graphql (complexity: 340)

Suggested approaches:

  1. Remove unused fields from the query
  2. Split the query into multiple simpler queries
  3. Optimize resolver complexity calculations
Edited by 🤖 GitLab Bot 🤖