debian-mirror-gitlab/app/graphql/queries/repository/blob_info.query.graphql
2022-10-11 01:57:18 +05:30

62 lines
1.3 KiB
GraphQL

query getBlobInfo(
$projectPath: ID!
$filePath: String!
$ref: String!
$shouldFetchRawText: Boolean!
) {
project(fullPath: $projectPath) {
__typename
id
repository {
__typename
empty
blobs(paths: [$filePath], ref: $ref) {
__typename
nodes {
__typename
id
webPath
name
size
rawSize
rawTextBlob @include(if: $shouldFetchRawText)
fileType
language
path
blamePath
editBlobPath
gitpodBlobUrl
ideEditPath
forkAndEditPath
ideForkAndEditPath
codeNavigationPath
projectBlobPathRoot
forkAndViewPath
environmentFormattedExternalUrl
environmentExternalUrlForRouteMap
canModifyBlob
canCurrentUserPushToBranch
archived
storedExternally
externalStorage
externalStorageUrl
rawPath
replacePath
pipelineEditorPath
simpleViewer {
fileType
tooLarge
type
renderError
}
richViewer {
fileType
tooLarge
type
renderError
}
}
}
}
}
}