1.0.0 • Published 3 months ago

mongodb-query-operators v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

mongodb-query-operators

Build Status

MongoDB query operators helper

https://shadiabuhilal.github.io/mongodb-query-operators/


Usage

import mongodb-query-operators

import { QueryOperators } from 'mongodb-query-operators';

Or

require mongodb-query-operators

const { QueryOperators } = require('mongodb-query-operators');

Available Query Operations

Support query operations that used in MongoDB.

VariableOperatorDescription
QueryOperators.LessThan$ltLess than
QueryOperators.LessThanOrEqual$lteLess than or equal to
QueryOperators.Equal$eqEqual to
QueryOperators.NotEqual$neNot equal to
QueryOperators.GreaterThan$gtGreater than
QueryOperators.GreaterThanOrEqual$gteGreater than or equal to
QueryOperators.In$inIn
QueryOperators.NotIn$ninNot In
QueryOperators.Exists$existsExists
QueryOperators.Type$typeType
QueryOperators.Modulus$modModulus
QueryOperators.Regex$regexRegular Expression
QueryOperators.Text$textText Search
QueryOperators.TextOperators.Search$searchText Search - Search
QueryOperators.TextOperators.Language$languageText Search - Language
QueryOperators.TextOperators.CaseSensitive$caseSensitiveText Search - Case Sensitive
QueryOperators.TextOperators.DiacriticSensitive$diacriticSensitiveText Search - Diacritic Sensitive
QueryOperators.Where$whereWhere
QueryOperators.Size$sizeSize
QueryOperators.All$allAll Elements Match
QueryOperators.ElemMatch$elemMatchElement Match
QueryOperators.Not$notNot
QueryOperators.Nor$norNor
QueryOperators.Or$orOr
QueryOperators.And$andAnd
QueryOperators.GeoWithin$geoWithinGeoWithin
QueryOperators.GeoIntersects$geoIntersectsGeoIntersects
QueryOperators.Near$nearNear
QueryOperators.NearSphere$nearSphereNear Sphere
QueryOperators.Geometry$geometryGeometry
QueryOperators.CenterSphere$centerSphereCenter Sphere
QueryOperators.Box$boxBox
QueryOperators.Polygon$polygonPolygon
QueryOperators.UniqueDocs$uniqueDocsUnique Documents
QueryOperators.Comment$commentComment

MongoDB query operations doc.