Sha256: df343329fb470a43f28bfeaa39d4a799173f92f1eccc344e044e7e2087b23c25
Contents?: true
Size: 765 Bytes
Versions: 9
Compression:
Stored size: 765 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, String, "Sort by ID, valid values are ASC or DESC", required: false argument :vote_count, type: String, description: "Sort by number of votes, valid values are ASC or DESC. Will be ignored if votes are hidden", required: false, prepare: ->(value, _ctx) do { proposal_votes_count: value } end end end end
Version data entries
9 entries across 9 versions & 1 rubygems