Converts MongoDB SBE (Slot-Based Execution) explain output to the format used by MongoDB 4.4 explain, enabling compatibility for tools and applications that expect the older format. Current stable version is 3.3.33, released as part of the MongoDB Compass ecosystem. This package provides a best-effort conversion that is close enough for practical use, but not an exact match. It is a lightweight, focused utility for MongoDB developers and tools that need to interpret SBE explain plans.
npm install mongodb-explain-compatNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import and use convertExplainCompat to transform an SBE explain object to a 4.4-compatible format.
Always validate that the converted output meets your requirements; do not rely on exact field parity.
Use import syntax or dynamic import(). Ensure your project is configured for ESM.
Monitor the GitHub repository for updates or contribute improvements if needed.
Add "type": "module" to package.json or use dynamic import().
Run npm install mongodb-explain-compat and ensure the import matches the package name.
Use import { convertExplainCompat } from 'mongodb-explain-compat'No dependency data recorded yet.