Creating a MongoDB Connection

After creating a project, you add a MongoDB Connection shared resource to create a connection between the plug-in and a MongoDB server.

Prerequisites

MongoDB Connection shared resource is available at the Resources level. Ensure that you have created a project as described in Creating a Project.

Procedure

  1. Expand the created project in the Project Explorer view.
  2. Right-click the Resources folder and click New > MongoDB Connection to open the MongoDB Connection wizard.
  3. The resource folder, package name, and resource name of the MongoDB Connection are provided by default. If you do not want to use the default configurations, change the values accordingly. Click Finish to open the MongoDB Connection Editor.
  4. Configure the MongoDB Connection shared resource in the MongoDB Connection editor.
    For more information regarding the configuration fields, see MongoDB Connection.
  5. Click Test Connection to validate the connection.