Skip to main content
MongoDB is a document database that stores data in flexible, JSON-like documents.

Quick Start

Type Mappings

Entity Naming

OmniQL entities become collection names (lowercase):

Translation Examples

CRUD Operations

GET (find)
CREATE (insertOne)
BULK INSERT (insertMany)
UPDATE (updateOne)
Arithmetic in UPDATE
DELETE (deleteOne)
UPSERT
REPLACE (replaceOne)

Filtering (Operators)

Examples:

Pagination

Aggregation

COUNT
GROUP BY
SUM, AVG, MIN, MAX
HAVING

Joins ($lookup)

OmniQL joins translate to MongoDB’s $lookup aggregation:

Window Functions (MongoDB 5.0+)

Supported window functions:
  • ROW NUMBER → $documentNumber
  • RANK → $rank
  • DENSE RANK → $denseRank
  • LAG/LEAD → $shift

Set Operations (MongoDB 4.4+)

CASE Expressions

Transactions (Replica Set Required)

Permissions

CREATE USER:
CREATE ROLE:
GRANT ROLE:

Supported Operations

Limitations

Version Requirements

Next Steps

Redis

Redis specifics

Data Types

Type mappings