You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Introduction

The MongoDB Binders plugin facilitates the seamless integration of MongoDB and Joget. This integration currently utilises few plugin types:

  • Data List Filter - Includes types for: Date, Date Range, Number, Options, Text Field.
  • Datalist Binder - To populate datalist with data retrieve from MongoDB database.
  • Form Load Binder - To retrieve form data from MongoDB database.
  • Form Store Binder - To store form data to MongoDB database.
  • Form Options Binder - To populate options field with data retrieve from MongoDB database.


What is MongoDB?

MongoDB is an object-oriented, simple, dynamic, and scalable NoSQL database. It is based on the NoSQL document store model.

The data objects are stored as separate documents inside a collection — instead of storing the data into the columns and rows of a traditional relational database.

With this integration plugins, you can now store and load data from form, datalist, and grid.

Plugin Info

Plugins Available in the Bundle:

  1. MongoDB Data List Filter

  2. MongoDB Datalist Binder
  3. MongoDB Form Load Binder
  4. MongoDB Form Store Binder
  5. MongoDB Form Options Binder

This plugin bundle is compatible with Joget DX 8.

Expected Outcome

Upon successful integration, Joget will be able to connect to MongoDB to store and retrieve data.

Figure 1: Example of successful integration

Getting Started

Setting up MongoDB

1. Install MongoDB Community Edition

Install MongoDB Community Edition on Linux/MacOS/Windows or with docker.

(Referring to Install MongoDB Community Edition - MongoDB Manual v7.0.

2. Start MongoDB Community Edition

Start and access MongoDB from your shell

mongosh

(Referring to Welcome to MongoDB Shell (mongosh) - MongoDB Shell)

3. Create MongoDB Database

After connecting to the shell, create a new database.

use jwdbtest

(Referring to MongoDB mongosh Create Database (w3schools.com))

4. Create MongoDB Collection

Create a new collection under the database.

db.createCollection("posts")

(Referring to MongoDB mongosh Create Collection (w3schools.com))


  • No labels