diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-09-16 18:06:05 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-09-16 18:06:05 +0000 |
commit | 930ff68c1efc380cb7522aa9b3884842eecb2486 (patch) | |
tree | 208f21205f9c8ee90e9722c6f641169d9a1569bf /app/graphql/types/sort_enum.rb | |
parent | 84727c8209a4412e21111a07f99b0438b03232de (diff) | |
download | gitlab-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.rb | 13 |
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 |