Skip to content

Add getTypeFromGraphQLId util function

Alex Pennells requested to merge getTypeFromGraphQLId into master

What does this MR do and why?

Adds a simple util function that retrieves the Type from a GID string (ex: gid://gitlab/Project/1337)

This was originally implemented in !119108 (merged). It was added to be able to determine if a given namespace was a Group or Project.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Alex Pennells

Merge request reports

Loading