GraphQL API and selecting by ID

Hello all. I am trying to use Gitlab’s GraphQL API and I cannot find in documentation how I could select Project or Group by ID.

When I list Projects or Groups I get IDs like: gid://gitlab/Group/12519248

It would like to use this ID later to select the Group. I’ve noticed that both Query.project and query types have fullPath as a parameter. Unfortunately fullPath can change as project is moved around. Could I select project or group by Global ID instead?

1 Like