Release Notes : Back to Release Notes
We are excited to announce the release of DocumentDB for VS Code Extension v0.8. This is a landmark update, and our biggest release yet, transforming the extension from a GUI browser into a full-featured query development environment for DocumentDB and MongoDB API databases.
This release introduces three major features: context-aware autocompletion in the Collection View, a brand-new Query Playground for writing and running scripts, and a built-in Interactive Shell for ad-hoc exploration. Everything is bundled, requires zero external tools, and works with Entra ID out of the box.
The filter, project, sort, and aggregation editors in the Collection View now understand your data. As you type queries, the editor suggests field names sampled from your collection’s actual schema, operators with type-aware sorting, and values, all with hover documentation for every operator linking to the DocumentDB API docs.
The editor knows your schema and guides you through every keystroke, so you no longer need to look up operator syntax or guess between similar operators like $gte and $gt.

In this example, the field additionalInfo.isFamilyFriendly is a boolean. The editor suggests true and false first, followed by comparison operators. Each suggestion shows its category (boolean literal, comparison, projection, element) and the documentation panel at the bottom describes the selected item.
Schema information is gathered locally from the documents you browse and query. No data is sent to external services for this purpose.
$ after a field, operators are sorted by relevance to that field’s type. Comparison operators appear first for numbers, regex operators for strings.ObjectId(), ISODate()), and JavaScript expressions (Date.now(), Math.min()). All the input restrictions from previous releases are gone.ObjectId?” warnings.$-prefixed operator or BSON constructor to see its description and a direct link to the DocumentDB API docs.The Query Playground introduces a .documentdb.js file type that lets you write and run JavaScript scripts against your cluster, directly inside VS Code. Think of it as a notebook-style scratchpad for DocumentDB.

The screenshot shows a .documentdb.js file connected to a cluster. The Run All CodeLens at the top runs the entire file, while each block has its own Run button plus shortcuts to open the same query in the Collection View or the Interactive Shell.
db.collection.find(), db.collection.aggregate(), or any valid JavaScript, with autocompletion for db.* chains, collection methods, BSON constructors, and schema-aware field suggestions.console.log(), print(), and printjson() all work, with output displayed in a dedicated console section of the results panel.Ctrl+Enter runs the current block, Ctrl+Shift+Enter runs the entire file.No external tools required. The previous scratchpad relied on a locally installed shell executable. That dependency is completely gone. The query runtime is now bundled directly into the extension and reuses the connection you already established when connecting to the cluster. This means it works seamlessly with Azure DocumentDB clusters using Entra ID authentication: no extra configuration, no credential juggling.
Just install the extension and start writing queries. No platform-specific headaches, no version mismatches, no PATH configuration.
A full REPL terminal embedded in VS Code, giving you a shell experience fully integrated with the extension’s connection management. Open it from any cluster, database, or collection node in the tree view, and you’re immediately connected and ready to explore.

The screenshot shows two key features: tab completion suggesting find(), findOne(), and other collection methods after typing db.restaurants.find, and ghost text suggesting the field name reviews after the user typed re in a query. The field suggestion comes from schema information gathered locally as you browse and query your data.
show dbs, show collections, use <db>, help, it (cursor iteration), exit/quit, cls/clear.$-operators as you type.db.users.), a list of options is shown. When only one match remains (e.g., typing re in a query where reviews is the only matching field), the suggestion appears as inline ghost text. The shell also suggests closing brackets automatically: type db.col.find({ _id: { $exists: true and see }}) appear as ghost text. Supports database names, collection names, collection methods, shell commands, and operators.Ctrl+C cancels long-running operations immediately.myDatabase>), and use <db> updates both the prompt and the terminal tab name.Same zero-install philosophy. The Interactive Shell uses the same bundled runtime as the Query Playground: no external shell executable needed. It works with every connection type the extension supports, including Azure DocumentDB with Entra ID. Install the extension and you have a fully functional shell, regardless of your OS or environment.
All three query surfaces (Collection View, Query Playground, and Interactive Shell) are linked together with navigation actions, so you can seamlessly move your work between them.
Every collection node in the tree view now shows three inline action buttons for instant access:

From left to right: Open Collection View, New Query Playground, and Open Interactive Shell. The same actions are available through right-click context menus on database and collection nodes.
The Collection View toolbar includes Open in Playground and Open in Shell buttons. Clicking either one takes your current find query (filter, project, and sort) and exports it into the target surface. The playground receives a complete db.getCollection('...').find(filter, project).sort(sort) statement ready to run. The shell receives the same expression pre-filled at the prompt so you can edit it before executing.
After every query result in the Interactive Shell, two clickable links appear: ↗ Collection View [db.collection] and ↗ Query Playground [db.collection]. Clicking either one opens the referenced collection in the corresponding surface, so you can switch from ad-hoc exploration to visual browsing or scripting with a single click.
Each code block in a Query Playground file shows Collection View and Shell CodeLens links alongside the Run button. These open the same query in the Collection View or launch an Interactive Shell session for the same connection. Some scripts (e.g., loops, aggregations, or multi-statement blocks) may not be convertible to the Collection View.
The Collection View toolbar includes a Copy button that copies the current find expression to the clipboard in db.getCollection('...').find(filter, project).sort(sort) format. You can paste this text into a playground file, a shell session, or share it with a colleague.
The Collection View also supports Paste: paste a find expression from the clipboard and the extension parses it back into the filter, project, and sort editors.
fast-uri, fast-xml-builder, basic-ftp, path-to-regexp, and other transitive dependencies to their latest versions. #624, #606, #607, #609, #627, #628, #629See the full changelog entry for this release: ➡️ CHANGELOG.md#080