class Praxis::Extensions::Pagination::OrderingParams::DSLCompiler

DSL for restricting how to order. It allows the concrete list of the fields one can use (through ‘by_fields’) It also allows to enforce that list for all positions of the ordering definition (through ‘enforce_for :all|:first’)

By default, only the first ordering position will be subject to that enforcement (i.e., 'enforce_for :first' is the default)

Example

attribute :order, Praxis::Types::OrderingParams.for(MediaTypes::Bar) do

by_fields :id, :name
enforce_for :all

end