正式なドキュメントは英語版であり、この日本語訳はAI支援翻訳により作成された参考用のものです。日本語訳の一部の内容は人間によるレビューがまだ行われていないため、翻訳のタイミングにより英語版との間に差異が生じることがあります。最新かつ正確な情報については、英語版をご参照ください。

Schema reference

  • Tier: Premium, Ultimate
  • Offering: GitLab.com
  • Status: Experiment

The availability of this feature is controlled by a feature flag. For more information, see the history. This feature is available for testing, but not ready for production use.

Orbit indexes 24 node types across 6 domains. Use these as entity names in your queries.

To fetch the live schema at any time:

curl --header "Authorization: Bearer <your_token>" \
  "https://gitlab.com/api/v4/orbit/schema"

Core

Node typeDescriptionKey properties
GroupGitLab group or subgroupid, full_path, name, visibility, traversal_path
ProjectGitLab project and repositoryid, full_path, name, visibility, archived, star_count
UserGitLab user accountid, username, email, name, state, is_admin
NoteComment or annotation on any GitLab objectid, note, noteable_type, noteable_id, internal, confidential

Source code

Node typeDescriptionKey properties
BranchGit branchid, project_id, name, is_default
DefinitionFunction, class, method, or module definitionid, file_path, fqn, name, definition_type, start_line, end_line, content
DirectoryDirectory in a repositoryid, project_id, path, name
FileSource code fileid, path, name, extension, language, content
ImportedSymbolImport or cross-file symbol referenceid, file_path, import_type, import_path, identifier_name

Code review

Node typeDescriptionKey properties
MergeRequestMerge requestid, iid, title, description, source_branch, target_branch, state, draft, squash
MergeRequestDiffSnapshot of changes in an MRid, merge_request_id, commits_count, files_count
MergeRequestDiffFileFile changed in an MR diffid, new_path, old_path, new_file, renamed_file, deleted_file

CI/CD

Node typeDescriptionKey properties
PipelineCI/CD pipeline runid, sha, ref, status, source, duration, failure_reason
StagePipeline stageid, name, status, position
JobCI/CD jobid, name, status, ref, allow_failure, environment, failure_reason

Planning

Node typeDescriptionKey properties
WorkItemIssue, epic, task, incident, or other work itemid, iid, title, description, state, work_item_type, due_date, weight
MilestoneMilestoneid, title, state, due_date, start_date
LabelLabel for categorizing workid, title, color

Security

Node typeDescriptionKey properties
FindingSecurity scan finding from security_findingsid, uuid, name, description, severity, deduplicated
SecurityScanSecurity scan execution in a pipelineid, scan_type, status, latest
VulnerabilityConfirmed or potential security vulnerabilityid, title, state, severity, report_type, resolved_on_default_branch
VulnerabilityIdentifierCVE, CWE, or other external referenceid, external_type, external_id, name, url
VulnerabilityOccurrenceSpecific occurrence of a vulnerability (Vulnerabilities::Finding in Rails)id, uuid, severity, report_type, detection_method, cve, location
VulnerabilityScannerSecurity scannerid, external_id, name, vendor

Notes

  • Definition IDs are content-hashed integers scoped per project and branch. Two definitions of the same symbol in different projects have different IDs even if the function name and file path are identical.
  • All entity IDs are returned as strings in query responses, even when the underlying value is an integer. This prevents precision loss in JavaScript clients for values above Number.MAX_SAFE_INTEGER.
  • content fields on Definition and File nodes contain the full source text of the definition or file. These fields are available for agent tools that need to hydrate file content without making separate API calls to GitLab.
  • All nodes include a traversal_path property used for authorization filtering. Query results are automatically scoped to entities the requesting user can access.