Sift.js - JS में MongoDB की queries का उपयोग
(github.com)- MongoDB के query operators का समर्थन
→ $in, $nin, $exists, $gte, $gt, $lte, $lt, $eq, $ne, $mod, $all, $and, $or, $nor, $not, $size, $type, $regex, $where, $elemMatch
- नीचे दिए गए functions के जरिए MongoDB में search करने का वही तरीका उपयोग करें
→ sift() : ऊपर के सभी query operators का उपयोग करने वाला filter बनाता है
→ createQueryTester() : केवल specific operators का उपयोग करने वाला filter बनाता है
→ createEqualsOperation() : custom operator जोड़ता है
- regular expression search
अभी कोई टिप्पणी नहीं है.