MongoDB API

MongoDB is a document-oriented database that lets you store your data without requiring a fixed schema. The MongoDB API implementation allows NDR Core to search and retrieve data from MongoDB collections.

Configuration

To connect to a MongoDB database, configure the Connection URL field using the following format:

mongodb://<host>:<port>/<database>/<collection>

Example

For a locally installed MongoDB with default settings:

mongodb://localhost:27017/myDatabase/myCollection

Features

The MongoDB implementation supports:

  • Simple search queries
  • Advanced search with multiple fields
  • Comparison operators: =, !=, >, <, >=, <=, contains
  • Single result retrieval by ID