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.
53 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 -
New Playground Result tab for each query
When two playgrounds are run at once (e.g. two aggregations), the result of one overwrites the result of the other rather than opening a new 'Playground Result' tab.
The desired behaviour is for a new Playground Result tab to be opened per run (preferably numbered 'Playground Result 1', 'Playground Result 2', etc.
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 -
replica sets
add support of MongoDB replica sets in ADS
1 vote -
List the documents in reverse order
Usulally I need to examine the last created document but in Mongo DB for VS Code in Connections braouser they are presented in ascending order (according to default index "_id : 1).
Please add option for the the documents to be listed in the descending order!1 vote -
Allow to spin up docker container with playground DB directly from VS Code
When a docker installation is detected on the system, allow to directly spin up a new mongoDB in docker and connect to it.
When that option is chosen automatically create a new container with the mongodb:latest docker image, a fixed username (e.g. "dev") and a random 16 chars password
When the port 27017 is already in use, ask the user which port the container should bind.
Then add the connection to the connections list, connect immediately and open the connection's tree item first hierarchy so I can start adding a database on the serverI want to be able to…
1 vote -
Add ability to go from Extended JSON to JS and vice-versa.
It would be nice to have a way to take an expression in EJSON and convert it to "plain" JS.
The motivativation is that sometimes we get large blocks of aggregation pipelines already in EJSON, but want to express them as JS code without EJSON, or vice-versa.
A command / shortcut / refactor method to highlight some text that is in format A and convert to format B would be nice.
{x: {$ne: {"$objectid": "AAAAAAAABBBBBBBBCCCCCCCC"}}} -------------^^^^^^^^^^^^^^^^^^ "Convert From EJSON..." {x: {$ne: ObjectId("AAAAAAAABBBBBBBBCCCCCCCC") }}
1 vote -
Enable simple and easy Connection with Mongoose or other ODM without the use of Code
it would be nice to be able to use the VScode extension when building MERN stack projects by easy connection between mongoose and the extension
1 vote -
Query delimiter lines in playgrounds
Much like the REST Client extension allows you to add delimiters (in their case three or more #) between requests, it would be good if this extension offered something similar so that you can easily run individual queries or sets of queries in files containing multiple. So my playground looked something like below, clicking the play button when the mouse cursor is above the delimiter executes the first statement and when below the second.
use('db1')
db.collection1.find({})//////
use('db2')
db.collection2.find({})1 vote -
Add directConnection=true for advanced connection settings options
Please add
directConnection=true
for advanced connection settings options coz i cannot connect to server with mongoDB1 vote
- Don't see your idea?