Skip to content

JS helper function to build graphQL ID

The following discussion from !26855 (merged) should be addressed:

  • @psimyn started a discussion: (+3 comments)

    not sure of the 'right' way to build this ID. need the opposite of getIdFromGraphQLId

We have getIdFromGraphQLId to convert a GraphQL id such as gid://gitlab/Boards/123 to 123. We need a function that does the opposite: given 123 return gid://gitlab/Boards/123

Edited by 🤖 GitLab Bot 🤖