Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/types/global_id_type.rb')
-rw-r--r--app/graphql/types/global_id_type.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/graphql/types/global_id_type.rb b/app/graphql/types/global_id_type.rb
index 7ebd98ff2e7..295a20c645e 100644
--- a/app/graphql/types/global_id_type.rb
+++ b/app/graphql/types/global_id_type.rb
@@ -7,7 +7,11 @@ module Types
A global identifier.
A global identifier represents an object uniquely across the application.
- An example of such an identifier is `"gid://gitlab/User/1"`.
+ An example of a global identifier is `"gid://gitlab/User/1"`.
+
+ `gid://gitlab` stands for the root name.
+ `User` is the name of the ActiveRecord class of the record.
+ `1` is the record id as per the id in the db table.
Global identifiers are encoded as strings.
DESC