Sha256: 4699c39906e81cf39effe585b2854a774c3e3918deb20c055a42c4f9508d8c79

Contents?: true

Size: 709 Bytes

Versions: 50

Compression:

Stored size: 709 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Proposals
    class ProposalInputSort < Decidim::Core::BaseInputSort
      include Decidim::Core::HasPublishableInputSort
      include Decidim::Core::HasEndorsableInputSort

      graphql_name "ProposalSort"
      description "A type used for sorting proposals"

      argument :id, GraphQL::Types::String, "Sort by ID, valid values are ASC or DESC", required: false
      argument :vote_count,
               type: GraphQL::Types::String,
               description: "Sort by number of votes, valid values are ASC or DESC. Will be ignored if votes are hidden",
               required: false,
               as: :proposal_votes_count
    end
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
decidim-proposals-0.26.8 lib/decidim/api/proposal_input_sort.rb
decidim-proposals-0.27.4 lib/decidim/api/proposal_input_sort.rb
decidim-proposals-0.27.3 lib/decidim/api/proposal_input_sort.rb
decidim-proposals-0.26.7 lib/decidim/api/proposal_input_sort.rb
decidim-proposals-0.26.5 lib/decidim/api/proposal_input_sort.rb
decidim-proposals-0.27.2 lib/decidim/api/proposal_input_sort.rb
decidim-proposals-0.27.1 lib/decidim/api/proposal_input_sort.rb
decidim-proposals-0.26.4 lib/decidim/api/proposal_input_sort.rb
decidim-proposals-0.27.0 lib/decidim/api/proposal_input_sort.rb
decidim-proposals-0.26.3 lib/decidim/api/proposal_input_sort.rb
decidim-proposals-0.27.0.rc2 lib/decidim/api/proposal_input_sort.rb
decidim-proposals-0.27.0.rc1 lib/decidim/api/proposal_input_sort.rb
decidim-proposals-0.26.2 lib/decidim/api/proposal_input_sort.rb
decidim-proposals-0.26.1 lib/decidim/api/proposal_input_sort.rb
decidim-proposals-0.26.0 lib/decidim/api/proposal_input_sort.rb
decidim-proposals-0.26.0.rc2 lib/decidim/api/proposal_input_sort.rb
decidim-proposals-0.26.0.rc1 lib/decidim/api/proposal_input_sort.rb
decidim-proposals-0.25.2 lib/decidim/api/proposal_input_sort.rb
decidim-proposals-0.25.1 lib/decidim/api/proposal_input_sort.rb
decidim-proposals-0.25.0 lib/decidim/api/proposal_input_sort.rb