# Sift.js - MongoDB의 쿼리를 JS에서 이용하기

> Clean Markdown view of GeekNews topic #4750. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=4750](https://news.hada.io/topic?id=4750)
- GeekNews Markdown: [https://news.hada.io/topic/4750.md](https://news.hada.io/topic/4750.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2021-08-03T10:01:44+09:00
- Updated: 2021-08-03T10:01:44+09:00
- Original source: [github.com](https://github.com/crcn/sift.js)
- Points: 6
- Comments: 0

## Topic Body

- 몽고DB의 쿼리 연산자 지원

ㅤ→ $in, $nin, $exists, $gte, $gt, $lte, $lt, $eq, $ne, $mod, $all, $and, $or, $nor, $not, $size, $type, $regex, $where, $elemMatch

- 아래 함수를 통해서 몽고DB에서 검색 하는 방식을 그대로 사용

ㅤ→ sift() : 위의 쿼리 연산자를 모두 이용하는 필터 생성

ㅤ→ createQueryTester() : 특정 연산자만 이용하는 필터 생성

ㅤ→ createEqualsOperation() : 커스텀 연산자 추가

- 정규식 검색

## Comments



_No public comments on this page._
