mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-14 20:48:25 +00:00
* feat: move plugins to root * modify tsconfig * add .gitignore * delete old plugins file * add parcel * docker compose volume mount * add gcs * add typescript to plugins folder * gcs to ts * add dynamodb * add elastic search * add firestore * add gsheets * add graphql * add mongodb * mssql * add mysql * add postgresql * add redis * add s3 * add slack * add stripe * remove plugin related packages from pkgjson * add lib folder * add gitignore * remove typescript generated files * remove generated file * remove generated files * add twilio * add dist to docker compose cache binding * add dist prefix * cleanup - 1 * delete dist * rename to index.ts + add jest config * add it.todo in tests * test fixes * test file changes * fix type checks * add @tooljet/plugins to server package json * esm vs commonjs bug, reduce got to 11.8.2 from 12.0.0 * docker file npm package version fix * add typesense * cleaup - 2 * add sendgrid * add lerna build and clean script for all packages + tsconfig * cleanup -3 * add plugins build step * add missing plugins build step in npm run build * add mssql, mysql & postgres as singleton classes * add db connection to cache only if datasourceId is available * client: add data source schema/manifest files * add query operations files * logic for wrapping form with schema * add script to create index file * add @tooljet/plugins to frontend folder * cleanup 1 -frontend * cleanup - 2 // frontend // data queries * add client and index to gitignore * update gitignore * fix lint & test * update ci * fix unit, e2e * cleanup -3 * fix test * fix tests * fix indent * try npm ci * fix tests * fix typo * fix * rename file for server entry * heroku fix * add main and types entry points in pkg json * move common to root * cleanup - 4: remove redundant $ sign prefix * cleanup - 4: remove redundant $ sign prefix * update options in-sync before DOM is painted * change type cloud to cloud storage * update readme * update ci.yml * update ci yml * add pkg-lock.json * rename index.ts to server.ts * update lock files * add server package.lock * remove unused import * revert commit: add minio * add root dep * import server.ts * remove plugins build step * add npm shrinkwrap * update version - plugins * add new version - 0.0.8 * upgrade version * move to symlinked package * add lock file * feat: add icon inside package * add plugin creation docs * Remove seed * move icons to plugins folder * install pg dep * add react to packages * add seed cmd * revert change * add plugins build in lint, e2e, unit * e2e, lint use npm ci * update dockerfile for plugins * try combining release with web * limit memory on release * try executing seed script post transpile * try executing seed from server directory * update seed execution * add minio * add correct type * add minio to pkg json * remove old file * fix provider key * add python installable + npm ^7.2.0 (#1752) * add python installable + npm ^7.2.0 * add py to prod file * pin npm version to 7.20.0 * pin npm version to 7.20.0 * split into multi stage build and remove python for buildx * copy plugins from buider stage * update dependencies * add freetds dependency * update server dockerfile * update client dockerfile * update dev dockerfile and compose file * fix entrypoint * fix server dev dockerfile * update docker-compose * remove npm install on root dir on docker build * fix heroku script * make lerna prod dependency to enable prod builds * remove redundant env setup Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com> Co-authored-by: navaneeth <navaneethpk@outlook.com>
594 lines
16 KiB
JSON
594 lines
16 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/",
|
|
"$id": "https://tooljet.io/dataqueries/Mongodb.schema.json",
|
|
"title": "Mongodb datasource",
|
|
"description": "A schema defining Mongodb datasource",
|
|
"type": "database",
|
|
"defaults": {
|
|
"document": "{ }"
|
|
},
|
|
"properties": {
|
|
"operation": {
|
|
"label": "Operation",
|
|
"key": "operation",
|
|
"type": "dropdown-component-flip",
|
|
"description": "Single select dropdown for operation",
|
|
"list": [
|
|
{
|
|
"name": "List collections",
|
|
"value": "list_collections"
|
|
},
|
|
{
|
|
"name": "Find One",
|
|
"value": "find_one"
|
|
},
|
|
{
|
|
"name": "Find Many",
|
|
"value": "find_many"
|
|
},
|
|
{
|
|
"name": "Total Count",
|
|
"value": "count_total"
|
|
},
|
|
{
|
|
"name": "Count",
|
|
"value": "count"
|
|
},
|
|
{
|
|
"name": "Distinct",
|
|
"value": "distinct"
|
|
},
|
|
{
|
|
"name": "Insert One",
|
|
"value": "insert_one"
|
|
},
|
|
{
|
|
"name": "Insert Many",
|
|
"value": "insert_many"
|
|
},
|
|
{
|
|
"name": "Update One",
|
|
"value": "update_one"
|
|
},
|
|
{
|
|
"name": "Update Many",
|
|
"value": "update_many"
|
|
},
|
|
{
|
|
"name": "Replace One",
|
|
"value": "replace_one"
|
|
},
|
|
{
|
|
"name": "Find One and Update",
|
|
"value": "find_one_update"
|
|
},
|
|
{
|
|
"name": "Find One and Replace",
|
|
"value": "find_one_replace"
|
|
},
|
|
{
|
|
"name": "Find One and Delete",
|
|
"value": "find_one_delete"
|
|
},
|
|
{
|
|
"name": "Aggregate",
|
|
"value": "aggregate"
|
|
},
|
|
{
|
|
"name": "Delete One",
|
|
"value": "delete_one"
|
|
},
|
|
{
|
|
"name": "Delete Many",
|
|
"value": "delete_many"
|
|
},
|
|
{
|
|
"name": "Bulk Operations",
|
|
"value": "bulk_write"
|
|
}
|
|
]
|
|
},
|
|
"insert_one": {
|
|
"collection": {
|
|
"label": "Collection",
|
|
"key": "collection",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter collection"
|
|
},
|
|
"document": {
|
|
"label": "Document",
|
|
"key": "document",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ name: 'Steve', 'hobbies: [ 'hiking', 'tennis', 'fly fishing' ] }",
|
|
"description": "Enter document",
|
|
"height": "150px"
|
|
},
|
|
"options": {
|
|
"$label": "Options",
|
|
"$key": "options",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ checkKeys: true }",
|
|
"description": "Enter options",
|
|
"height": "50px"
|
|
}
|
|
},
|
|
"insert_many": {
|
|
"collection": {
|
|
"label": "Collection",
|
|
"key": "collection",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter collection"
|
|
},
|
|
"document": {
|
|
"label": "Documents",
|
|
"key": "documents",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "[ { _id: 1, name: 'Steve' }, { _id: 2, name: 'Sally' } ]",
|
|
"description": "Enter document",
|
|
"height": "150px"
|
|
},
|
|
"options": {
|
|
"$label": "Options",
|
|
"$key": "options",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ checkKeys: true }",
|
|
"description": "Enter options",
|
|
"height": "50px"
|
|
}
|
|
},
|
|
"find_one": {
|
|
"collection": {
|
|
"$label": "Collection",
|
|
"$key": "collection",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter collection"
|
|
},
|
|
"filter": {
|
|
"$label": "Filter",
|
|
"$key": "filter",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ birth: { $lt: 'new Date({{new Date('01/01/1990').getTime()}})' } }",
|
|
"description": "Enter filter",
|
|
"height": "150px"
|
|
},
|
|
"options": {
|
|
"$label": "Options",
|
|
"$key": "options",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ projections: { _id: 0, 'name.first': 0, birth: 1 }, sort: { birth: -1 }, limit: 10, skip: 2 }",
|
|
"description": "Enter options",
|
|
"height": "150px"
|
|
}
|
|
},
|
|
"find_many": {
|
|
"collection": {
|
|
"$label": "Collection",
|
|
"$key": "collection",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter collection"
|
|
},
|
|
"filter": {
|
|
"$label": "Filter",
|
|
"$key": "filter",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ birth: { $lt: 'new Date({{new Date('01/01/1990').getTime()}})' } }",
|
|
"description": "Enter filter",
|
|
"height": "150px"
|
|
},
|
|
"options": {
|
|
"$label": "Options",
|
|
"$key": "options",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ projections: { _id: 0, 'name.first': 0, birth: 1 }, sort: { birth: -1 }, limit: 10, skip: 2 }",
|
|
"description": "Enter options",
|
|
"height": "150px"
|
|
}
|
|
},
|
|
"count_total": {
|
|
"collection": {
|
|
"$label": "Collection",
|
|
"$key": "collection",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter collection"
|
|
},
|
|
"options": {
|
|
"$label": "Options",
|
|
"$key": "options",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ fullResponse: true }",
|
|
"description": "Enter options",
|
|
"height": "50px"
|
|
}
|
|
},
|
|
"count": {
|
|
"collection": {
|
|
"$label": "Collection",
|
|
"$key": "collection",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter collection"
|
|
},
|
|
"filter": {
|
|
"$label": "Filter",
|
|
"$key": "filter",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ birth: { $lt: 'new Date({{new Date('01/01/1990').getTime()}})' } }",
|
|
"description": "Enter filter",
|
|
"height": "150px"
|
|
},
|
|
"options": {
|
|
"$label": "Options",
|
|
"$key": "options",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ skip: 2 }",
|
|
"description": "Enter options",
|
|
"height": "50px"
|
|
}
|
|
},
|
|
"distinct": {
|
|
"collection": {
|
|
"$label": "Collection",
|
|
"$key": "collection",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter collection"
|
|
},
|
|
"field": {
|
|
"$label": "Field",
|
|
"$key": "field",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter field name"
|
|
},
|
|
"filter": {
|
|
"$label": "Filter",
|
|
"$key": "filter",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ directors: 'Barbra Streisand', }",
|
|
"description": "Enter filter",
|
|
"height": "150px"
|
|
},
|
|
"options": {
|
|
"$label": "Options",
|
|
"$key": "options",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ comment: 'some comment' }",
|
|
"description": "Enter options",
|
|
"height": "50px"
|
|
}
|
|
},
|
|
"update_one": {
|
|
"collection": {
|
|
"$label": "Collection",
|
|
"$key": "collection",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter collection"
|
|
},
|
|
"filter": {
|
|
"$label": "Filter",
|
|
"$key": "filter",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ directors: 'Barbra Streisand', }",
|
|
"description": "Enter filter",
|
|
"height": "150px"
|
|
},
|
|
"update": {
|
|
"$label": "Update",
|
|
"$key": "update",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ $set: { status: 'Modified' } }",
|
|
"description": "Enter update",
|
|
"height": "150px"
|
|
},
|
|
"options": {
|
|
"$label": "Options",
|
|
"$key": "options",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ comment: 'some comment' }",
|
|
"description": "Enter options",
|
|
"height": "50px"
|
|
}
|
|
},
|
|
"update_many": {
|
|
"collection": {
|
|
"$label": "Collection",
|
|
"$key": "collection",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter collection"
|
|
},
|
|
"filter": {
|
|
"$label": "Filter",
|
|
"$key": "filter",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ directors: 'Barbra Streisand', }",
|
|
"description": "Enter filter",
|
|
"height": "150px"
|
|
},
|
|
"update": {
|
|
"$label": "Update",
|
|
"$key": "update",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ $set: { status: 'Modified' } }",
|
|
"description": "Enter update",
|
|
"height": "150px"
|
|
},
|
|
"options": {
|
|
"$label": "Options",
|
|
"$key": "options",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ comment: 'some comment' }",
|
|
"description": "Enter options",
|
|
"height": "50px"
|
|
}
|
|
},
|
|
"replace_one": {
|
|
"collection": {
|
|
"$label": "Collection",
|
|
"$key": "collection",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter collection"
|
|
},
|
|
"filter": {
|
|
"$label": "Filter",
|
|
"$key": "filter",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ title: { $regex: 'The Cat from' } } }",
|
|
"description": "Enter filter",
|
|
"height": "150px"
|
|
},
|
|
"replacement": {
|
|
"$label": "Replacement",
|
|
"$key": "replacement",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ title: { $regex: 'The Cat from some sector' } }",
|
|
"description": "Enter replacement",
|
|
"height": "150px"
|
|
},
|
|
"options": {
|
|
"$label": "Options",
|
|
"$key": "options",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ comment: 'some comment' }",
|
|
"description": "Enter options",
|
|
"height": "50px"
|
|
}
|
|
},
|
|
"find_one_replace": {
|
|
"collection": {
|
|
"$label": "Collection",
|
|
"$key": "collection",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter collection"
|
|
},
|
|
"filter": {
|
|
"$label": "Filter",
|
|
"$key": "filter",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ title: { $regex: 'The Cat from' } } }",
|
|
"description": "Enter filter",
|
|
"height": "150px"
|
|
},
|
|
"replacement": {
|
|
"$label": "Replacement",
|
|
"$key": "replacement",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ title: { $regex: 'The Cat from some sector' } }",
|
|
"description": "Enter replacement",
|
|
"height": "150px"
|
|
},
|
|
"options": {
|
|
"$label": "Options",
|
|
"$key": "options",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ comment: 'some comment' }",
|
|
"description": "Enter options",
|
|
"height": "50px"
|
|
}
|
|
},
|
|
"find_one_update": {
|
|
"collection": {
|
|
"$label": "Collection",
|
|
"$key": "collection",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter collection"
|
|
},
|
|
"filter": {
|
|
"$label": "Filter",
|
|
"$key": "filter",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ directors: 'Barbra Streisand', }",
|
|
"description": "Enter filter",
|
|
"height": "150px"
|
|
},
|
|
"update": {
|
|
"$label": "Update",
|
|
"$key": "update",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ $set: { status: 'Modified' } }",
|
|
"description": "Enter update",
|
|
"height": "150px"
|
|
},
|
|
"options": {
|
|
"$label": "Options",
|
|
"$key": "options",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ upsert: true }",
|
|
"description": "Enter options",
|
|
"height": "50px"
|
|
}
|
|
},
|
|
"find_one_delete": {
|
|
"collection": {
|
|
"$label": "Collection",
|
|
"$key": "collection",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter collection"
|
|
},
|
|
"filter": {
|
|
"$label": "Filter",
|
|
"$key": "filter",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ directors: 'Barbra Streisand', }",
|
|
"description": "Enter filter",
|
|
"height": "150px"
|
|
},
|
|
"options": {
|
|
"$label": "Options",
|
|
"$key": "options",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ sort: { field: -1 } }",
|
|
"description": "Enter options",
|
|
"height": "50px"
|
|
}
|
|
},
|
|
"delete_one": {
|
|
"collection": {
|
|
"$label": "Collection",
|
|
"$key": "collection",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter collection"
|
|
},
|
|
"filter": {
|
|
"$label": "Filter",
|
|
"$key": "filter",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ directors: 'Barbra Streisand', }",
|
|
"description": "Enter filter",
|
|
"height": "150px"
|
|
},
|
|
"options": {
|
|
"$label": "Options",
|
|
"$key": "options",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ comment: 'some comment' }",
|
|
"description": "Enter options",
|
|
"height": "50px"
|
|
}
|
|
},
|
|
"delete_many": {
|
|
"collection": {
|
|
"$label": "Collection",
|
|
"$key": "collection",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter collection"
|
|
},
|
|
"filter": {
|
|
"$label": "Filter",
|
|
"$key": "filter",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ directors: 'Barbra Streisand', }",
|
|
"description": "Enter filter",
|
|
"height": "150px"
|
|
},
|
|
"options": {
|
|
"$label": "Options",
|
|
"$key": "options",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ comment: 'some comment' }",
|
|
"description": "Enter options",
|
|
"height": "50px"
|
|
}
|
|
},
|
|
"bulk_write": {
|
|
"collection": {
|
|
"$label": "Collection",
|
|
"$key": "collection",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter collection"
|
|
},
|
|
"operations": {
|
|
"$label": "Operations",
|
|
"$key": "operations",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "[{ insertOne: { document: { directors: 'Barbra Streisand' } } }]",
|
|
"description": "Enter operations",
|
|
"height": "150px"
|
|
},
|
|
"options": {
|
|
"$label": "Options",
|
|
"$key": "options",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ comment: 'some comment' }",
|
|
"description": "Enter options",
|
|
"height": "50px"
|
|
}
|
|
},
|
|
"aggregate": {
|
|
"collection": {
|
|
"$label": "Collection",
|
|
"$key": "collection",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter collection"
|
|
},
|
|
"pipeline": {
|
|
"$label": "Pipeline",
|
|
"$key": "pipeline",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "[{ $match: { categories: 'Bakery' } }, { $group: { _id: '$stars', count: { $sum: 1 } } }]",
|
|
"description": "Enter pipeline",
|
|
"height": "150px"
|
|
},
|
|
"options": {
|
|
"$label": "Options",
|
|
"$key": "options",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ comment: 'some comment' }",
|
|
"description": "Enter options",
|
|
"height": "50px"
|
|
}
|
|
}
|
|
}
|
|
}
|