Module: Decidim::Core::HasTimestampInputSort

Defined in:
lib/decidim/api/input_sorts/has_timestamp_input_sort.rb

Class Method Summary collapse

Class Method Details

.included(child_class) ⇒ Object



6
7
8
9
# File 'lib/decidim/api/input_sorts/has_timestamp_input_sort.rb', line 6

def self.included(child_class)
  child_class.argument :created_at, GraphQL::Types::String, "Sort by date of creation, valid values are ASC or DESC", required: false
  child_class.argument :updated_at, GraphQL::Types::String, "Sort by date of last modification, valid values are ASC or DESC", required: false
end