summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/pipeline_editor/graphql/queries/blob_content.query.graphql
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/pipeline_editor/graphql/queries/blob_content.query.graphql')
-rw-r--r--app/assets/javascripts/pipeline_editor/graphql/queries/blob_content.query.graphql13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/assets/javascripts/pipeline_editor/graphql/queries/blob_content.query.graphql b/app/assets/javascripts/pipeline_editor/graphql/queries/blob_content.query.graphql
new file mode 100644
index 00000000000..5928d90f7c4
--- /dev/null
+++ b/app/assets/javascripts/pipeline_editor/graphql/queries/blob_content.query.graphql
@@ -0,0 +1,13 @@
+query getBlobContent($projectPath: ID!, $path: String!, $ref: String) {
+ project(fullPath: $projectPath) {
+ id
+ repository {
+ blobs(paths: [$path], ref: $ref) {
+ nodes {
+ id
+ rawBlob
+ }
+ }
+ }
+ }
+}