Login to follow
MongoDB

MongoDB (ODC)

Stable version 2.0.0 (Compatible with ODC)
Uploaded on 10 September 2024 by OutSystems Labs
MongoDB

MongoDB (ODC)

Documentation
2.0.0

How to Use the MongoDB ODC Integration Application


Prerequisites

Before you start, ensure that you have:

  • Access to MongoDB with the correct credentials.
  • Access to the OutSystems environment where the application is deployed.

Creating Documents

  1. Access the Creation Screen: Navigate to the CreateDocumentScreen.
  2. Enter Information: Fill in the CollectionName and DocumentJson fields with the desired collection name and the JSON of the document to be created.
  3. Submit: Click Create to add the document to MongoDB.

Reading Documents

  1. Access the Retrieval Screen: Navigate to the GetDocumentsScreen.
  2. Set Filters: Enter the search filters in the FilterJson field.
  3. Search: Click Search to retrieve the documents.

Updating Documents

  1. Access the Update Screen: Go to the UpdateDocumentScreen.
  2. Locate Document: Provide the search filter and update data in the FilterJson and UpdateJson fields.
  3. Update: Click Update to modify the document.

Deleting Documents

  1. Access the Deletion Screen: Navigate to DeleteDocumentScreen.
  2. Select Document: Type the search filter in the FilterJson field to select the document.
  3. Delete: Click Delete to remove the document from the collection.

Usage Tips

  • Validate JSONs: Ensure that the JSONs provided are well-formed and valid.
  • Understand Collections: Familiarize yourself with the structure of the MongoDB collections to perform operations correctly.
  • Security: Never share your database access credentials and always follow best security practices.