update readme

This commit is contained in:
ppetzold 2023-03-21 12:20:45 +01:00
parent 18bab06a44
commit 514048dde1

View File

@ -384,12 +384,8 @@ Filter operators must be whitelisted per column in `PaginateConfig`.
const config: PaginateConfig<CatEntity> = { const config: PaginateConfig<CatEntity> = {
// ... // ...
filterableColumns: { filterableColumns: {
// Whitelist operators individually id: [FilterOperator.EQ, FilterSuffix.NOT], // Enable individual operators
id: [FilterOperator.EQ, FilterSuffix.NOT], age: true, // Enable all operators on a single column
'toys.name': [FilterOperator.IN],
// Whitelist all operators on a single column
age: true,
}, },
} }
``` ```