Provides custom ACE Editor auto-completers for MongoDB queries and aggregation pipelines. Version 1.1.1 is the current stable release. It offers completions for aggregation pipeline stages and query fields based on server version and processed schema fields. Designed specifically for use with ACE Editor, it is part of the MongoDB-js ecosystem and requires external dependencies like ace-builds. Differentiates from general autocompleters by being MongoDB-aware, providing context-sensitive completions for $match, $group, etc., and schema-driven suggestions.
npm install mongodb-ace-autocompleterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a StageAutoCompleter for aggregation pipelines using ACE Editor and sets it as the active completer.
npm install --save-dev @types/ace
Use import syntax or dynamic import(). If using CommonJS, stick to older versions.
Assign directly: editor.completers = [stageAutoCompleter];
Ensure version is a valid MongoDB version string like '4.0.0'.
npm install mongodb-ace-autocompleter
Use import { StageAutoCompleter } from 'mongodb-ace-autocompleter';Install @types/ace: npm install --save-dev @types/ace
Ensure import: import tools from 'ace-builds/src-noconflict/ext-language_tools';