summaryrefslogtreecommitdiff
path: root/app/graphql/types/sort_enum.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-09-16 18:06:05 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2019-09-16 18:06:05 +0000
commit930ff68c1efc380cb7522aa9b3884842eecb2486 (patch)
tree208f21205f9c8ee90e9722c6f641169d9a1569bf /app/graphql/types/sort_enum.rb
parent84727c8209a4412e21111a07f99b0438b03232de (diff)
downloadgitlab-ce-930ff68c1efc380cb7522aa9b3884842eecb2486.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/graphql/types/sort_enum.rb')
-rw-r--r--app/graphql/types/sort_enum.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/graphql/types/sort_enum.rb b/app/graphql/types/sort_enum.rb
new file mode 100644
index 00000000000..3245cb33e0d
--- /dev/null
+++ b/app/graphql/types/sort_enum.rb
@@ -0,0 +1,13 @@
+# frozen_string_literal: true
+
+module Types
+ class SortEnum < BaseEnum
+ graphql_name 'Sort'
+ description 'Common sort values'
+
+ value 'updated_desc', 'Updated at descending order'
+ value 'updated_asc', 'Updated at ascending order'
+ value 'created_desc', 'Created at descending order'
+ value 'created_asc', 'Created at ascending order'
+ end
+end