Update README.md

This commit is contained in:
Philipp 2023-03-19 08:19:25 +01:00 committed by GitHub
parent 3fa48d4f63
commit 380e8e6a9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -334,7 +334,9 @@ const config: PaginateConfig<CatEntity> = {
relations: { home: { pillows: true } },
sortableColumns: ['id', 'name', 'home.pillows.color'],
searchableColumns: ['name', 'home.pillows.color'],
filterableColumns: { 'home.pillows.color': [FilterOperator.EQ] },
filterableColumns: {
'home.pillows.color': [FilterOperator.EQ]
},
}
const result = await paginate<CatEntity>(query, catRepo, config)