v0.8.0 🚀
meili-bot
released this
12 Oct 14:02
·
312 commits
to refs/heads/main
since this release
⚠️ Breaking changes
- Add entries query option in plugin configuration (#538) @bidoubiwa
Removal of populateEntryRule
The setting populateEntryRule
in the plugin configuration is removed in favor of populate
in entriesQuery
(see next session).
Before:
{
restaurant: { populateEntryRule: [] }
}
After:
{
restaurant: { entriesQuery: { populate: [] }}
}
New plugin configuration: entriesQuery
It is possible with entriesQuery
to define how your data will be fetched from your database. Here are the available options (plus locale
from the internalization plugin).
See this readme section for further information.
Example
In plugin.js
module.exports = {
meilisearch: {
config: {
restaurant: {
entriesQuery: {
limit: 1000, // batch size
locale: 'all', // retrieve all languages
...
}
}
}
},
}
Thanks again to @bidoubiwa, and @meili-bors[bot]! 🎉