[go: up one dir, main page]

Skip to content

GraphQL: Allow fields to have 0 complexity

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

About

Within GitLab's bespoke complexity calculations on BaseField, we currently prohibit the ability for a field to have a complexity of 0.

Proposal

Allowing a field to have a complexity of 0 could initially be used to exclude queryComplexity fields !52448 (merged) from affecting complexity calculations.

Future

In future, we could additionally decide that certain kinds of fields that require no effort for the API to expose could be have 0 complexity too. This would be tackled in a separate issue and would require developer documentation guidelines to be written.

Edited by 🤖 GitLab Bot 🤖