Uploaded image for project: 'VS Code Extension'
  1. VS Code Extension
  2. VSCODE-316

Playgrounds should run in database specified in connection string

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.4.0
    • Affects Version/s: None
    • Component/s: Connectivity, Playgrounds
    • None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • 3
    • Iteration Pterodactyl, Iteration Qantassaurus
    • Needed
    • Hide

      Run a playground section in the VSCode docs should also mention explicitly the following:

      If the connection string has specified a database to be connected to by default then the playgrounds will run against the default connected database unless there is an explicit call to use another database (use("another-db")). The autocomplete will also try to autocomplete the collection names available on the default connected database. The message that appears after the connection will also notify the users of the default connected database (screenshot provided).

      Show
      Run a playground section in the VSCode docs should also mention explicitly the following: If the connection string has specified a database to be connected to by default then the playgrounds will run against the default connected database unless there is an explicit call to use another database (use("another-db")). The autocomplete will also try to autocomplete the collection names available on the default connected database. The message that appears after the connection will also notify the users of the default connected database (screenshot provided).

      See https://github.com/mongodb-js/vscode/issues/376 – if a database in the connection string is specified to VSCode, playgrounds should default to running in the context of that database.

            Assignee:
            himanshu.singh@mongodb.com Himanshu Singh
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: