Add getTypeFromGraphQLId util function
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.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Alex Pennells