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.29.1 lib/decidim/api/proposal_input_sort.rb
decidim-proposals-0.28.4 lib/decidim/api/proposal_input_sort.rb
decidim-proposals-0.27.9 lib/decidim/api/proposal_input_sort.rb
decidim-proposals-0.29.0 lib/decidim/api/proposal_input_sort.rb
decidim-proposals-0.28.3 lib/decidim/api/proposal_input_sort.rb
decidim-proposals-0.27.8 lib/decidim/api/proposal_input_sort.rb
decidim-proposals-0.29.0.rc4 lib/decidim/api/proposal_input_sort.rb
decidim-proposals-0.29.0.rc3 lib/decidim/api/proposal_input_sort.rb
decidim-proposals-0.29.0.rc2 lib/decidim/api/proposal_input_sort.rb
decidim-proposals-0.29.0.rc1 lib/decidim/api/proposal_input_sort.rb
decidim-proposals-0.28.2 lib/decidim/api/proposal_input_sort.rb
decidim-proposals-0.27.7 lib/decidim/api/proposal_input_sort.rb
decidim-proposals-0.28.1 lib/decidim/api/proposal_input_sort.rb
decidim-proposals-0.27.6 lib/decidim/api/proposal_input_sort.rb
decidim-proposals-0.26.10 lib/decidim/api/proposal_input_sort.rb
decidim-proposals-0.26.9 lib/decidim/api/proposal_input_sort.rb
decidim-proposals-0.28.0 lib/decidim/api/proposal_input_sort.rb
decidim-proposals-0.27.5 lib/decidim/api/proposal_input_sort.rb
decidim-proposals-0.28.0.rc5 lib/decidim/api/proposal_input_sort.rb
decidim-proposals-0.28.0.rc4 lib/decidim/api/proposal_input_sort.rb