How to use the filter function from joi
Find comprehensive JavaScript joi.filter code examples handpicked from public code repositorys.
GitHub: dhis2/app-hub
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. */
4
6
34
joi.string is the most popular function in joi (40578 examples)