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.

71 results found

  1. Show UUID fields as UUID in document editor

    I have a collection with documents containing UUID fields (standard, not legacy). When I browse those documents in the extension, they are shown like this:

    {
    "id": "5e58eae46015f74c61dd6af0",
    "my
    uuid": {
    "$binary": {
    "base64": "ILGr2eKZSmqkQX1OZsoICQ==",
    "subType": "04"
    }
    }
    }

    I would have expected them to be shown as:

    {
    "id": "5e58eae46015f74c61dd6af0",
    "my
    uuid": UUID("20b1abd9-e299-4a6a-a441-7d4e66ca0809")
    }

    Robot 3T (for example) does this well. I think it would greatly help to read such values.

    32 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)
  2. Linting/Validation support for query language

    It would be nice if MongoDB for VS Code had a built-in functionality to verify query syntax, best practices, etc.

    Conceptually, this would work similarly to how ESLINT works for JavaScript.

    27 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)
  3. Open documents in the same tab

    Every time I want to check a doc, It opens it in a new tab Which makes it difficult to navigate across the workspace. I would recommend open docs in the same tab and maybe device some mechanism to open the docs in a new tab if the user wants to compare two or more of them.

    23 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)
  4. "Table View" of Documents

    As some others tools have, a way to view all documents from a collection in a table format with columns and lines. An 'click on header for sort' is well desirable.

    17 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)
  5. Kerberos Authentication for VSCode

    Hi,

    All our databases are secured using Kerberos authenticatoin. I do not see Kerberos/GSSAPI authentication option for this plugin. Looking forward to see this added to the plugin so that we can offer this to our developers. Compass supports Kerberos authentication so it should be an easy port to this plugin. I hope :)

    Thanks

    12 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)
  6. 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)
  7. We do not have to repeat use('db') every time

    After executing use('db') we don't need to include the command with each run, especially when we want to run the selected line.

    At present, if I run some selected lines to run from play ground it doesn't works if the lines doesn't includes the use('db') command.

    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

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  8. Conditional confirmation prompt

    I want to configure which connection should have a confirmation prompt before running a playground command. For ex., no prompt for the development database, yes prompt for the production database.

    8 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)
  9. Option to disable comments for aggregation stages

    Detailed Description

    Option to disable comments for aggregation stages by default. I would assume that link to documentation website will make more sense, considering complexity of aggregation stage use cases. And even that should be optional.

    Context

    I run a lot of quick aggregations to get data insights, comments are just wasting 50% of playground's screen space and not too helpful for me.

    6 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)
  10. Tree collapse/expand in the connections panel

    After opening a few options of the tree sometimes I want to collapse all and explore a completely different path, having the option to expand/collapse all would be neat!

    5 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)
  11. 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)
  12. 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)
  13. 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)
  14. Use Ctr-Enter to execute instuction where the cursor is.

    Currently, is kind of tedius to execute a targeted line. Other editors accept Ctl-Enter to execute the line, which is very convenient.

    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

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

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

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

MongoDB for VS Code

Categories

Feedback and Knowledge Base