Flexmonster MongoDB Connector is a server-side Node.js tool that retrieves data from MongoDB databases for use with Flexmonster Pivot Table & Charts. Version 2.9.130 is current, with stable release cadence. It bridges MongoDB collections to Flexmonster's pivot grid, enabling ad-hoc analytics, reporting, and business intelligence without writing ETL pipelines. Key differentiator: seamless integration with Flexmonster's front-end component, supporting complex aggregation pipelines, real-time data refresh, and type-safe TypeScript definitions. Requires mongodb driver ^4.17.0 (4.17.2 or earlier). Unlike generic ODBC/JDBC connectors, this is purpose-built for Flexmonster, offering optimized query translation and native MongoDB aggregation support.
npm install flexmonster-mongo-connectorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates connecting to a MongoDB collection and fetching data for Flexmonster pivot table using FlexmonsterMongoConnector with TypeScript.
Pin mongodb dependency to ^4.17.0 in your package.json.
Use ESM imports (import { FlexmonsterMongoConnector } from 'flexmonster-mongo-connector') or use dynamic import() in CJS projects.Call db from client before passing: client.db('databaseName').Use the 'connect' method with 'db' and 'report' options instead of passing 'uri' to the constructor.
Upgrade Node.js to >=14 and use ESM imports as shown in the quickstart.
Instantiate Db: const db = client.db('myDatabase'); then pass db to connector.Define measures with 'aggregation: "sum"' (string) instead of using MongoDB aggregation pipeline syntax.