2021-11-17 17:59:00 +00:00
|
|
|
{
|
|
|
|
|
"$schema": "https://json-schema.org/",
|
|
|
|
|
"$id": "https://tooljet.io/dataqueries/Mongodb.schema.json",
|
|
|
|
|
"title": "Mongodb datasource",
|
|
|
|
|
"description": "A schema defining Mongodb datasource",
|
|
|
|
|
"type": "object",
|
2021-11-22 08:22:32 +00:00
|
|
|
"defaults": {
|
|
|
|
|
"document": "{ }"
|
|
|
|
|
},
|
2021-11-17 17:59:00 +00:00
|
|
|
"properties": {
|
|
|
|
|
"operation": {
|
|
|
|
|
"$label": "Operation",
|
|
|
|
|
"$key": "operation",
|
|
|
|
|
"type": "dropdown-component-flip",
|
|
|
|
|
"description": "Single select dropdown for operation",
|
|
|
|
|
"$options": [
|
2022-01-14 08:23:57 +00:00
|
|
|
{
|
|
|
|
|
"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"
|
|
|
|
|
}
|
2021-11-17 17:59:00 +00:00
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"insert_one": {
|
|
|
|
|
"collection": {
|
|
|
|
|
"$label": "Collection",
|
|
|
|
|
"$key": "collection",
|
|
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"description": "Enter collection"
|
|
|
|
|
},
|
|
|
|
|
"document": {
|
|
|
|
|
"$label": "Document",
|
|
|
|
|
"$key": "document",
|
|
|
|
|
"type": "codehinter",
|
|
|
|
|
"mode": "javascript",
|
2022-01-14 08:23:57 +00:00
|
|
|
"placeholder": "{ name: 'Steve', 'hobbies: [ 'hiking', 'tennis', 'fly fishing' ] }",
|
2021-11-21 04:14:26 +00:00
|
|
|
"description": "Enter document",
|
|
|
|
|
"height": "150px"
|
2022-01-14 08:23:57 +00:00
|
|
|
},
|
|
|
|
|
"options": {
|
|
|
|
|
"$label": "Options",
|
|
|
|
|
"$key": "options",
|
|
|
|
|
"type": "codehinter",
|
|
|
|
|
"mode": "javascript",
|
|
|
|
|
"placeholder": "{ checkKeys: true }",
|
|
|
|
|
"description": "Enter options",
|
|
|
|
|
"height": "50px"
|
2021-11-17 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"insert_many": {
|
|
|
|
|
"collection": {
|
|
|
|
|
"$label": "Collection",
|
|
|
|
|
"$key": "collection",
|
|
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"description": "Enter collection"
|
|
|
|
|
},
|
|
|
|
|
"document": {
|
|
|
|
|
"$label": "Documents",
|
|
|
|
|
"$key": "documents",
|
|
|
|
|
"type": "codehinter",
|
|
|
|
|
"mode": "javascript",
|
2022-01-14 08:23:57 +00:00
|
|
|
"placeholder": "[ { _id: 1, name: 'Steve' }, { _id: 2, name: 'Sally' } ]",
|
2021-11-21 04:14:26 +00:00
|
|
|
"description": "Enter document",
|
|
|
|
|
"height": "150px"
|
2022-01-14 08:23:57 +00:00
|
|
|
},
|
|
|
|
|
"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"
|
2021-11-17 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-01-14 08:23:57 +00:00
|
|
|
}
|