canOrderBy property

List<String> canOrderBy

possible orderings with parameter ?order=

  • active: (URLParameter), prefix with a hyphen (-active) to reverse the order
  • archived_at: (URLParameter), prefix with a hyphen (-archived_at) to reverse the order
  • created_at: (URLParameter), prefix with a hyphen (-created_at) to reverse the order
  • deleted_at: (URLParameter), prefix with a hyphen (-deleted_at) to reverse the order
  • description: (URLParameter), prefix with a hyphen (-description) to reverse the order
  • name: (URLParameter), prefix with a hyphen (-name) to reverse the order
  • updated_at: (URLParameter), prefix with a hyphen (-updated_at) to reverse the order

Implementation

static List<String> get canOrderBy => [
      'active',
      'archived_at',
      'created_at',
      'deleted_at',
      'description',
      'name',
      'updated_at'
    ];