Ghost/core/server/models/base
Kevin Ansfield 35f8042d7b
Added ?search= param to Admin API members endpoint (#11854)
no issue

- adds `search` bookshelf plugin that calls out to an optional `searchQuery()` method on individual models to apply model-specific SQL conditions to queries
- updated the base model's `findPage()` method to use the search plugin within `findPage` calls
- added a `searchQuery` method to the `member` model that performs a basic `LIKE %query%` for both `name` and `email` columns
- allowed the `?search=` parameter to pass through in the `options` object for member browse requests
2020-05-28 10:14:02 +01:00
..
index.js Added ?search= param to Admin API members endpoint (#11854) 2020-05-28 10:14:02 +01:00
listeners.js Refactored common lib import to use destructuring (#11835) 2020-05-22 19:22:20 +01:00
utils.js Refactored common lib import to use destructuring (#11835) 2020-05-22 19:22:20 +01:00