How to use the filter function from joi

Find comprehensive JavaScript joi.filter code examples handpicked from public code repositorys.

12
13
14
15
16
17
18
19
20
21
* The value of this property is an instance of Filters.
*
* All options can be overwritten by each route.
* Options:
*  enabled - enable the queryFilter
*  ignoreKeys - ignore the key. Note that only keys of type Joi.filter() in the validate.query object are used.
*  rename - A Joi-schema with .rename() functions that are used to get renames of the keys.
*           Can also be a plain Object with keys being the query-name, and the value being the database-name.
*      This is used to rename API-facing filter-names to database-column names.
*/
fork icon4
star icon6
watch icon34