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. Enable code block with connection to choose and run icon

    Like python notebooks, it would be very helpful to have code blocks to run and select database. like the image shown

    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)
  2. Naming convention of documents when viewing in VSCode

    The MongoDB extension for VSCode has given me a really good development experience by simply using my DB from either local machine or from Atlas, without going out of the editor.

    But one thing we can have, as an improvement, is to give some sort of ability that the documents of a MongoDB collection can be named based on a field chosen when viewing it via extension.

    Currently, for sake of uniqueness, it uses _id as representation name, which may sometimes feel confusing while developing with MongoDB.

    I will really love to have something of sorts implemented in VS Code.

    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  ·  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)
  3. Reactive document opened by ID for editing

    I really want to be able to open a document by ID so I can fix data created during development, but that would be on page 1000 if browsing.

    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)
  4. 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':
    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. Use the ssh connection or the tunnel from vscode

    It would be awesome to be able to use the ssh connection or the tunnel from vscode to connect to the MongoDB 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  ·  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)
  6. Pin Connection to Playground

    I would like to be able to switch across playgrounds that are contextually associated with different connections without having switch connections globally.

    So, I connect one playground with one connection, I open another playground for another connection. When I switch back to the first playground I don't have to click through to the first connection as the playground is still associated with it.

    Likewise, when I switch to the second playground, it's already/still connected to the second connection.

    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)
  7. Connection Collections

    Instead of having to search through a long list of connections, create folders in which related connections might be grouped?

    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  ·  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)
  8. show/hide setting for the info line in the file tab

    I can see the potential in this tiny feature but for my, seeing unrelated info line text in the file is distractions, and I will appreciate a setting to hide or show this info line in the file
    I searched in the setting but did not find any settings to show or hide this info line.
    further more I will suggest to add "connected info" section in the mdb sidebar, it can be as a mini dash board.. this info line will be great fit in that section. thanks!

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

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

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

    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)
  11. 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

    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)
  12. 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

    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)
  13. 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

    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)
  14. 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)
  15. 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

    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)
  16. schema diagrams in vs code

    need schema diagrams. to view or implement graphically.

    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)
  17. 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

    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. Confirm save

    Add a confirmation, when you save an edited document

    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)
  19. 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)
  20. replica sets

    add support of MongoDB replica sets in ADS

    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)
← Previous 1 3 4
  • Don't see your idea?

MongoDB for VS Code

Categories

Feedback and Knowledge Base