feat(catalog): support query predicates in DefaultEntitiesCatalog.facets
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
@@ -686,9 +686,10 @@ export class DefaultEntitiesCatalog implements EntitiesCatalog {
|
||||
})
|
||||
.groupBy(['search.key', 'search.original_value']);
|
||||
|
||||
if (request.filter) {
|
||||
if (request.filter || request.query) {
|
||||
applyEntityFilterToQuery({
|
||||
filter: request.filter,
|
||||
query: request.query,
|
||||
targetQuery: query,
|
||||
onEntityIdField: 'search.entity_id',
|
||||
knex: this.database,
|
||||
|
||||
Reference in New Issue
Block a user