Raise Unlicensed GraphQL errors.

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

  • Close this issue

Some features exposed through GraphQL are only available in a certain license.

Right now we treat those as ResourceUnavailable, since we cannot hide the features from the schema as that's defined when the schema is loaded: Some namespaces would have the feature available, others wouldn't so we can't hide the fields globally.

It would be nice if instead of returning null from those fields, we'd raise a Gitlab::Graphql::Unlicensed error and potentially return which license contains the feature so the users could decide to upgrade if they want access to that feature.

Edited Oct 16, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading