Skip to content

Instantly share code, notes, and snippets.

@codewithleader
Created October 21, 2022 17:40
Show Gist options
  • Select an option

  • Save codewithleader/a5c956a3243f7410099030bd31aded00 to your computer and use it in GitHub Desktop.

Select an option

Save codewithleader/a5c956a3243f7410099030bd31aded00 to your computer and use it in GitHub Desktop.
MongoDB - Operadores y Guia de uso

Operadores en Mongo

Listado de operadores RELACIONALES

  • $eq: equal - igual
  • $lt: low than - menor que
  • $lte: low than equal - menor o igual que
  • $gt: greater than - mayor que
  • $gte: greater than equal - mayor o igual que
  • $ne: not equal - distinto
  • $in: in - dentro de
  • $nin: not in - no dentro de

Listado de operadores LOGICOS

  • $and:
  • $or:
  • $not:

Evaluation Query Operators

Link: https://www.mongodb.com/docs/manual/reference/operator/query-evaluation/#evaluation-query-operators

  • $expr: Allows use of aggregation expressions within the query language.
  • $jsonSchema: Validate documents against the given JSON Schema.
  • $mod: Performs a modulo operation on the value of a field and selects documents with a specified result.
  • $regex: Selects documents where values match a specified regular expression.
  • $text: Performs text search.
  • $where: Matches documents that satisfy a JavaScript expression.

$text

Link: https://www.mongodb.com/docs/manual/reference/operator/query/text/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment