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/queries/repository/blob_info.query.graphql')
-rw-r--r--app/graphql/queries/repository/blob_info.query.graphql62
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
+ }
+ }
+ }
+ }
+ }
+}