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.
-
Provide a option to execute individual queries
I don't see an option to execute the selected query. I was using Azure Cosmos DB extension from some time and that provides an option to execute a selected query.
7 votesThis has been released in version 0.1.0.
Select individual or multiple lines (even non-consecutive lines by using multiple cursors) and a code lens will appear that will allow you to run the selection. You can also use: “Run Selected Lines From Playground” in the command palette.
Let us know what you think!
-
Playground Output
When executing a query in playground, the results come in json format like when we click on a document in connections.
Currently {name: "value"}
Proposal {"name": "value"}1 voteIn the next release of the extension, results that are documents/JSON will be displayed in an editor view properly formatted and highlighted.
Here is the PR for reference: https://github.com/mongodb-js/vscode/pull/198
- Don't see your idea?