Creating a MongoDB Connection

After creating a project, you have to create a MongoDB Connection shared resource to connect to the 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 them accordingly. Click Finish to open the MongoDB Connection Editor.
  4. Configure the MongoDB Connection shared resource in the MongoDB Connection editor.
    See MongoDB Connection regarding the configuration fields.
  5. Click Test Connection to validate the connection.