0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/server/models
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
..
base Replaced options.where GQL statements with filter notation (#10160) 2018-11-15 15:53:24 +01:00
plugins Replaced options.where GQL statements with filter notation (#10160) 2018-11-15 15:53:24 +01:00
relations Updated Post and Author model permissible method (#9966) 2018-10-09 18:03:13 +07:00
accesstoken.js 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
api-key.js Updated ApiKey onSaving to forward options (#9994) 2018-10-14 16:54:10 +07:00
app-field.js
app-setting.js
app.js Updated permittedOptions to correctly call super 2018-09-21 12:15:29 +02:00
client-trusted-domain.js
client.js Updated permittedOptions to correctly call super 2018-09-21 12:15:29 +02:00
index.js Added mobiledoc revisions functionality 2018-10-09 15:31:09 +02:00
integration.js Added HTTP BREAD for integrations resource (#9985) 2018-10-18 14:03:56 +01:00
invite.js Replaced options.where GQL statements with filter notation (#10160) 2018-11-15 15:53:24 +01:00
mobiledoc-revision.js Added mobiledoc revisions functionality 2018-10-09 15:31:09 +02:00
permission.js 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
post.js Replaced options.where GQL statements with filter notation (#10160) 2018-11-15 15:53:24 +01:00
refreshtoken.js Switched to eslint-plugin-ghost (#9835) 2018-09-17 20:49:30 +02:00
role.js Stopped api key from assigning the 'Owner' role (#9971) 2018-10-12 15:38:57 +07:00
session.js Removed user_id constraint when upserting session (#10085) 2018-10-30 16:15:48 +07:00
settings.js Added session_secret setting to schema (#9953) 2018-10-05 12:25:51 +01:00
subscriber.js Replaced options.where GQL statements with filter notation (#10160) 2018-11-15 15:53:24 +01:00
tag.js Replaced options.where GQL statements with filter notation (#10160) 2018-11-15 15:53:24 +01:00
user.js Replaced options.where GQL statements with filter notation (#10160) 2018-11-15 15:53:24 +01:00
webhook.js Updated webhooks schema and add relation (#10018) 2018-10-17 18:17:13 +07:00