summaryrefslogtreecommitdiff
path: root/app/graphql/types/projects/namespace_project_sort_enum.rb
blob: 7c7b54226d3bb17157e15c2b6c80a0d68931748a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

module Types
  module Projects
    class NamespaceProjectSortEnum < BaseEnum
      graphql_name 'NamespaceProjectSort'
      description 'Values for sorting projects'

      value 'SIMILARITY', 'Most similar to the search query.', value: :similarity
      value 'STORAGE', 'Sort by storage size.', value: :storage
      value 'ACTIVITY_DESC', 'Sort by latest activity, in descending order.', value: :latest_activity_desc
    end
  end
end