This module allows Drupal's External Entities module to access MongoDB collections as external data sources. It provides basic CRUD operations and flexible configuration for connecting to MongoDB, making it a foundation for more specialized integrations.
Note that extensive parts of this module was generating via AI coding agents under human supervision.
MongoDB Storage Client
MongoDB Storage Client (xnttmongodb) provides a MongoDB storage client for the External Entities module.
It allows External Entities to access MongoDB collections as external data sources, with support for listing, counting, reading, creating, updating, and deleting documents.
The module provides a generic, low-level configuration interface inspired by the SQL storage client (xnttsql). Connection settings and MongoDB operations can be configured while keeping the storage client flexible enough to support different MongoDB data models.
xnttmongodb is also designed to serve as a base for more specialized storage client plugins. Other modules can extend it to provide application-specific configuration interfaces while reusing its MongoDB connection, query, filtering, BSON conversion, and CRUD capabilities.
Features
- MongoDB integration for External Entities.
- Configurable MongoDB connection, database, and collection.
- List and count queries.
- Read, create, update, and delete operations.
- Translation of External Entities filters into MongoDB filters.
- Support for MongoDB BSON types such as ObjectId.
- JSON-based configuration for advanced MongoDB operations.
- Extensible architecture for building specialized MongoDB storage clients.
- Designed for External Entities 3.1 and Drupal 11/12.
Additional Requirements
This modules uses mongodb/mongodb PHP library (official) v2.5.
Ask your assistant about External Entities MongoDB storage
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 1.0.0-beta1 | Pre-release | 11 | PHP >=8.3 | Oct 16, 2026 | |
| 1.0.x-dev | Dev | 11 | PHP >=8.3 | Oct 3, 2026 |