MongoDB for VS Code
MongoDB for VS Code lets you easily work with MongoDB directly from your VS Code environment. Using the MongoDB extension, you can:
- Connect to a MongoDB instance or cluster
- Navigate your databases and collections
- Prototype queries and aggregations
You can install the MongoDB extension from inside of VS Code via the VS Code Extension Marketplace. Help us improve the MongoDB for VS Code by posting your ideas and suggestions for improvements.
61 results found
-
filter by database/collection name
would be nice to be able to filter by database/collection name in the connections panel, similar to what is found in MongoDB Compass.
3 votes -
Ability to select a specific property to display in the sidebar document list
Make it possible to select (and remember for each collection) a property to display in the list of documents, instead of the standard '_id' property (For example: 'name' property, instead of '_id')
2 votes -
Kerberos ticket renewal in MongoDB Node.js Driver programmatically
Requesting a functionality of the MongoDB driver (or another NPM module) to automatically renew the tickets when it is necessary without kinit on Linux environment
2 votes -
ability to run to a specified aggregation stage and see output
Essentially the same as https://mongoplayground.net/
if you add multiple aggregation stages you can pick which one you want to run up to, and inspect the output.
This makes it dramatically easier to tweak larger pipelines without having to comment further stages out.
2 votes -
Add ObjectId() to intellisense
Add ObjectId() to .mongodb intellisense / autocomplete when indicating that an _id field is of ObjectId type
2 votes -
Intellisense for playground code
Hovering over getCollection and other supported methods doesn't show any intellisense. This would save us time from having to go to the docs and looking that method up. Also the sort method which I think its a normal JavaScript method doesn't show intellisense inside playground so please add some intellisense.
2 votes -
Set a default connection or auto detect a running MongoDB session
Automatically set up a connection via the MongoDB Extension instead of pasting the connection string manually every time.
Either by
1. detecting a running mongo session
2. Loading default connections, from a place on the system2 votes -
Specify default database in Advanced Connection Settings form
The Create New Connection using the Advanced Connection Settings form does not provide a place to specify a default database. I'm specifically interested in this so I like running selected lines and it'd be a way to not include 'use(<db>)' with every query.
2 votes -
make and export button and a delete collection item
make button to export collection to xls or any other spreadsheet file. And also make a button to remove collection items
2 votes -
Copy collection schema
Detailed Description
Ability to copy collection schema, Export schema to a typescript file,Context
So that we can use it (schema interface) for typescript. Basically It will infer types about collection.2 votes -
Graph Visualizer
Be able to visualize graph relation and nodes and edges.
2 votes -
predefined connections array on settings, this helps on devcontainer setups alot
sqltools is already using similar idea to handle connections
"sqltools.connections": [
{
"name": "Container database",
"driver": "MariaDB",
"server": "localhost",
"previewLimit": 50,
"port": 3306,
"database": "....",
"username": ".....",
"password": "....."
}
]2 votes -
Improve Performance of Result Display - Stream Results to JSON Display
It looks like currently the playground results don't appear until the full set is collected from the server. This is extremely slow sometimes depending on the latency to the cluster and document size.
As soon as you have one document returned in the cursor, you can start showing the data in the results panel write the JSON streaming fashion as each document is deserialized.1 vote -
I'd like to view, edit and even version control my validation schemas
I'd like to view, edit and even version control my validation schemas
1 vote -
show last 'n' entires
An option to show last 'n' records. Currently, we have an option to see 10 at a time and then click on 'show more' for every 10 records which is tedious. An option to show last n would help a lot.
1 vote -
Write playground as TypeScript file
Feature Request
It would be nice to write MongoDB playground in Typescript, then we will have design time validation and good suggestions in IDE.
Detailed Description
It would be awesome to have types for MongoDB interfaces and the ability to import your own types.
…import {Sale} from './types'; use('mongodbVSCodePlaygroundDB'); const sales: Sale[] = [ { 'item': 'abc', 'price': 10, 'quantity': 2, 'date': new Date('2014-03-01T08:00:00Z') }, { 'item': 'jkl', 'price': 20, 'quantity': 1, 'date': new Date('2014-03-01T09:00:00Z') }, { 'item': 'xyz', 'price': 5, 'quantity': 10, 'date': new Date('2014-03-15T09:00:00Z') }, { 'item': 'xyz', 'price': 5, 'quantity': 20, 'date': new Date('2014-04-04T11:21:39.736Z') }, { 'item':
1 vote -
Separate Terminal Instances for Different Playground Scripts
Currently, when running multiple scripts, all output is directed to the same terminal.
This could lead to a lot of confusion and difficulty in tracking the progress of individual scripts, especially when they are running concurrently.For example, when running two scripts that both output progress percentages, the output in the terminal looks like this:
Progress: [====== ] 13.70%
Progress: [===== ] 11.37%
Progress: [====== ] 13.71%
Progress: [===== ] 11.37%It's challenging to distinguish which progress percentage corresponds to which script. This issue is exacerbated when more scripts are running simultaneously.
1 vote -
Allow specifying connection string via an environment variable
I have a local replica set that's using randomized ports which results in a non-deterministic connection string, but I have it stored in an environment variable that I use to connect via the shell.
1 vote -
schema diagrams in vs code
need schema diagrams. to view or implement graphically.
1 vote -
Configurable playground name/path
Currently, only files ending with .mongodb or .mongodb.js are considered playgrounds. It would be helpful if this was more configurable, perhaps a regex that could be compared against the file path/name so we could consider all files within a folder as playgrounds.
1 vote
- Don't see your idea?