Ghost/core/server/models/plugins
Katharina Irrgang e89a27f3ab
Replaced options.where GQL statements with filter notation (#10160)
refs #10105

- `options.where` is an older deprecated logic
- before the filter language was invented, Ghost generates statements for knex
- if we want to replace GQL with NQL, we can't generate these statements
- they are not understood from NQL, because NQL uses mongo JSON
- go through usages and rewrite the statements
- invent `extraFilters` for now
- we need to keep the support for `status` or `staticPages` for now (API requirement)
- IMO both shortcuts in the extra filters should be removed in the future

This commit is required for https://github.com/TryGhost/Ghost/pull/10159!
2018-11-15 15:53:24 +01:00
..
collision.js Import lib/common only 2017-12-12 10:28:13 +01:00
filter.js Replaced options.where GQL statements with filter notation (#10160) 2018-11-15 15:53:24 +01:00
include-count.js 🐛Fixed count.posts respecting co authors (#9830) 2018-08-30 17:05:29 +01:00
index.js Fixed model events and transactions (#9524) 2018-04-06 18:19:45 +02:00
pagination.js Import lib/common only 2017-12-12 10:28:13 +01:00
transaction-events.js 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00