From 1da159d1102bf0ded9ce50d447c821258c7be800 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sat, 17 Apr 2021 19:57:19 +0300 Subject: feat: add ignoreCaseRegex hook --- src/services/products.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/services/products.service.ts') diff --git a/src/services/products.service.ts b/src/services/products.service.ts index f3ae2b6..9934a66 100644 --- a/src/services/products.service.ts +++ b/src/services/products.service.ts @@ -2,7 +2,7 @@ import { Application } from '@feathersjs/express'; import service from 'feathers-mongoose'; import Model from '../models/product/product.model'; -const Products = service({ Model }); +const Products = service({ Model, whitelist: ['$options', '$regex'] }); export default (app: Application): void => { app.use('/products', Products); -- cgit v1.2.3