feat: add support for search on nlp value description

This commit is contained in:
Mohamed Marrouchi
2025-03-21 15:16:58 +01:00
parent 0b902031fa
commit 7b111868ed
2 changed files with 5 additions and 3 deletions

View File

@@ -93,7 +93,9 @@ export class NlpValueController extends BaseController<
@Get('count')
async filterCount(
@Query(
new SearchFilterPipe<NlpValue>({ allowedFields: ['entity', 'value'] }),
new SearchFilterPipe<NlpValue>({
allowedFields: ['entity', 'value', 'doc'],
}),
)
filters?: TFilterQuery<NlpValue>,
) {
@@ -142,7 +144,7 @@ export class NlpValueController extends BaseController<
@Query(PopulatePipe) populate: string[],
@Query(
new SearchFilterPipe<NlpValue>({
allowedFields: ['entity', 'value'],
allowedFields: ['entity', 'value', 'doc'],
}),
)
filters: TFilterQuery<NlpValue>,