debian-mirror-gitlab/app/assets/javascripts/repository/queries/blob_info.query.graphql
2021-12-11 22:18:48 +05:30

51 lines
981 B
GraphQL

query getBlobInfo($projectPath: ID!, $filePath: String!, $ref: String!) {
project(fullPath: $projectPath) {
id
userPermissions {
pushCode
downloadCode
createMergeRequestIn
forkProject
}
pathLocks {
nodes {
path
}
}
repository {
empty
blobs(paths: [$filePath], ref: $ref) {
nodes {
webPath
name
size
rawSize
rawTextBlob
fileType
path
editBlobPath
ideEditPath
forkAndEditPath
ideForkAndEditPath
canModifyBlob
storedExternally
rawPath
replacePath
pipelineEditorPath
simpleViewer {
fileType
tooLarge
type
renderError
}
richViewer {
fileType
tooLarge
type
renderError
}
}
}
}
}
}