Ghost/core/test/unit/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
..
filter_spec.js Replaced options.where GQL statements with filter notation (#10160) 2018-11-15 15:53:24 +01:00
pagination_spec.js Removed old jshint/jscs rules 2018-06-02 21:48:23 +02:00