Node-RED node package (v0.9.7) that provides a custom node ('mongoql') for building MongoDB queries within Node-RED flows. Allows users to construct MongoDB query objects via a visual interface or JSON, reducing syntax errors. Low release cadence (last update 2020); suitable for Node-RED users who need to query MongoDB without writing raw queries. Supports MongoDB operators like $regex, $gte, $in. No TypeScript types provided.
npm install node-red-contrib-mongoqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows installation and basic usage in Node-RED environment.
Connect the mongoql node to a MongoDB node (e.g., node-red-node-mongodb) that executes the query.
Check MongoDB driver version and consider alternatives if using modern MongoDB features.
For advanced queries, use a full MongoDB client node or custom function node.
Refer to MongoDB documentation for query syntax and test in a function node first.
Ensure the mongoql node is connected to a separate MongoDB output node that receives the query object.
Restart Node-RED after installation. If still missing, run 'npm install --save node-red-contrib-mongoql' in the user data directory.
In the mongoql node edit dialog, enter valid JSON (e.g., {"field": "value"}) without enclosing quotes for keys.