diff options
Diffstat (limited to 'app/graphql')
-rw-r--r-- | app/graphql/queries/repository/blob_info.query.graphql | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/app/graphql/queries/repository/blob_info.query.graphql b/app/graphql/queries/repository/blob_info.query.graphql new file mode 100644 index 00000000000..fd463436ed4 --- /dev/null +++ b/app/graphql/queries/repository/blob_info.query.graphql @@ -0,0 +1,62 @@ +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 + } + } + } + } + } +} |