Skip to content

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.


To report bugs, please use our VSCODE JIRA project.

68 results found

  1. 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

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Playground  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  2. Print Logs As They Happen, Not At End of Script

    Hi,

    When I add a print line in mongosh, that line is executed as it is reached. For example, if I add it within a loop, it prints for every iteration in a loop. However, in a VS Code Playground, it only prints when the Playground has finished executing.

    I'd like to request that the VS Code extension allows for print troubleshooting anywhere within a Playground as it is executed, not just at the end.

    3 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Playground  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  3. Create/Edit App Services Functions from VS Code

    Once connected to an Atlas database, if there are applications in App Services, the ability to select an application and create or edit Functions inside the MongoDB for VS Code extension would be really cool!

    10 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Atlas  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  4. Display the time it took for queries

    Similar to any other MongoDB tool, I would like to know how much it took me to run the specific query/count and so on.
    It would be nice to also have a timer that indicate how much time it been running for (when the query taking too much time).

    4 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Playground  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  5. 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

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  6. 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

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  7. 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

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Playground  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  8. 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

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Connectivity  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  9. 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

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Playground  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  10. Add directConnection=true for advanced connection settings options

    Please add directConnection=true for advanced connection settings options coz i cannot connect to server with mongoDB

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Connectivity  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  11. Create new document, View documents

    Buttons to quickly create new documents and view all documents in the panel (next to the refresh and search buttons) and ability to assign shortcut keys.

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  12. Driver templates in VSCode

    It would be great if the VSCode Extension automatically generated boilerplate code (JS, Java, Python, C#, Go) based on the file type.

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  13. Connection & DB colors

    please add connection and database coloring which applies to explore list, opened tabs and playground files. Intellij and Navicat both support this feature which prevents any confusion about test and deployment server.

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  14. Reuse db connection

    It's much slower than other mongodb clients like Robo 3t every time I run a query, it seems that it create a new connection to the database and then executes the query. Is there any way to keep and reuse an existed connection so that to speed up the query executions?

    3 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Playground  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  15. Change Object ID display format from '{$oid: 'xxxx'}' to ObjectId('xxxxx')

    It just uses only 1 line instead 3 lines. And we can copy it directly.

    3 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  Playground  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  16. DB Documantation

    Adding the ability to add documentation on each db,collection,document,index etc...
    for example :add an explenation on what this field is for in a document.
    Then give the ability to generate a document with the db schema and all related details entered

    3 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Schema  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  17. Add ObjectId() to intellisense

    Add ObjectId() to .mongodb intellisense / autocomplete when indicating that an _id field is of ObjectId type

    2 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Playground  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  18. 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

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Playground  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  19. Better Failed to Connect Error Message

    Currently, I get Failed to connect: connection <monitor> to X.Y.Z.W:27017 closed. It would be helpful to tell the user why that is or give a hint as to why the problem occurred. I have to keep it in the back of my mind that most of the time the issue is because my IP changed and my atlas doesn't have my ip whitelisted.

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Atlas  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  20. 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 system

    2 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  • Don't see your idea?

MongoDB for VS Code

Categories

Feedback and Knowledge Base