Flexmonster Software License Agreement (“Agreement”) has been significantly revised and is effective as of September 30, 2024.
The following modifications were made:
The modified version of Flexmonster Software License Agreement is available here.
Downloading, installing, and/or continuing to use Flexmonster Software after September 30, 2024, constitutes Licensee’s acceptance of the terms and conditions of the modified version of Flexmonster Software License Agreement. If Licensee does not agree to any of these terms and conditions, they must cease using Flexmonster Software and must not download, install, use, access, or continue to access Flexmonster Software. By continuing to use Flexmonster Software or renewing the license under License Model or Maintenance after the effective date of any modifications to Agreement, Licensee accepts and agrees to be bound by the terms and conditions of the modified Agreement.
getShema(mongoDBInstance: Db instance, index: String)
[starting from version: 2.8]
This API call allows getting the list of all fields with their types from a MongoDB database. Used in the handler of the Flexmonster /fields
request. The getShema
method is a part of the Flexmonster MongoDB Connector API.
Parameter/Type | Description |
---|---|
mongoDBInstance Db instance | The instance of the needed MongoDB database. |
index String | The collection’s name. index is sent in the body of the Flexmonster request. |
Array of field objects, which contains all the fields and information about them. The response format is the same as in the /fields request.
mongo.post("/fields", async (req, res) => { try { const result = await MongoDataAPI.getSchema(mongoDBInstance, req.body.index); res.json(result.toJSON()); } catch (err) { } });