Socket
Socket
Sign inDemoInstall

mongodb-query-operators

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    mongodb-query-operators

MongoDB query operators helper


Version published
Weekly downloads
7
decreased by-22.22%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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.

Keywords

FAQs

Last updated on 29 Jan 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc