summaryrefslogtreecommitdiff
path: root/app/graphql/types/tree/tree_type.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/types/tree/tree_type.rb')
-rw-r--r--app/graphql/types/tree/tree_type.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/graphql/types/tree/tree_type.rb b/app/graphql/types/tree/tree_type.rb
new file mode 100644
index 00000000000..1eb6c43972e
--- /dev/null
+++ b/app/graphql/types/tree/tree_type.rb
@@ -0,0 +1,12 @@
+# frozen_string_literal: true
+module Types
+ module Tree
+ class TreeType < BaseObject
+ graphql_name 'Tree'
+
+ field :trees, Types::Tree::TreeEntryType.connection_type, null: false
+ field :submodules, Types::Tree::SubmoduleType.connection_type, null: false
+ field :blobs, Types::Tree::BlobType.connection_type, null: false
+ end
+ end
+end