mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
84c8bcc457
refs #11729 - Having a plugin allows to reason about ordering better and gives way to further extraction away form the core. - Just like with filtering, ordering falls into similar category of having effect on knex'es query builder object extension through additional statements - ORDER BY in this case. - Because there were bugs associated with use of permittedAttributes inside of `parseOrderOption` method, introduced separate `orderAttributes` function which returns only those fields which are orderable (https://github.com/TryGhost/Ghost/issues/11729#issuecomment-685740836)
11 lines
382 B
JavaScript
11 lines
382 B
JavaScript
module.exports = {
|
|
filter: require('./filter'),
|
|
order: require('./order'),
|
|
customQuery: require('./custom-query'),
|
|
search: require('./search'),
|
|
includeCount: require('./include-count'),
|
|
pagination: require('./pagination'),
|
|
collision: require('./collision'),
|
|
transactionEvents: require('./transaction-events'),
|
|
hasPosts: require('./has-posts')
|
|
};
|