summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/static_site_editor/graphql/queries/source_content.query.graphql
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/static_site_editor/graphql/queries/source_content.query.graphql')
-rw-r--r--app/assets/javascripts/static_site_editor/graphql/queries/source_content.query.graphql9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/assets/javascripts/static_site_editor/graphql/queries/source_content.query.graphql b/app/assets/javascripts/static_site_editor/graphql/queries/source_content.query.graphql
new file mode 100644
index 00000000000..e36d244ae57
--- /dev/null
+++ b/app/assets/javascripts/static_site_editor/graphql/queries/source_content.query.graphql
@@ -0,0 +1,9 @@
+query sourceContent($project: ID!, $sourcePath: String!) {
+ project(fullPath: $project) {
+ fullPath,
+ file(path: $sourcePath) @client {
+ title
+ content
+ }
+ }
+}