canOrderBy property

List<String> canOrderBy

possible orderings with parameter ?order=

  • created_at: (URLParameter), prefix with a hyphen (-created_at) to reverse the order
  • display_date: (URLParameter), prefix with a hyphen (-display_date) to reverse the order
  • id: (URLParameter), prefix with a hyphen (-id) to reverse the order
  • note: (URLParameter), prefix with a hyphen (-note) to reverse the order
  • note_category_id: (URLParameter), prefix with a hyphen (-note_category_id) to reverse the order
  • updated_at: (URLParameter), prefix with a hyphen (-updated_at) to reverse the order

Implementation

static List<String> get canOrderBy => [
      'created_at',
      'display_date',
      'id',
      'note',
      'note_category_id',
      'updated_at'
    ];