Mongo Db
Node: mongoDb · Full type: n8n-nodes-base.mongoDb · Version: 1.2
Credentials
mongoDb (alias: @mongo)
CREDENTIAL @mongo = mongoDb "My Mongo Db"
Operations
Resource: searchIndexes
createSearchIndex
| Parameter |
Type |
Default |
Details |
indexNameRequired |
string |
"" |
required |
indexDefinition |
json |
"{}" |
required |
indexType |
options |
"vectorSearch" |
required; vectorSearch, search |
dropSearchIndex
| Parameter |
Type |
Default |
Details |
indexNameRequired |
string |
"" |
required |
listSearchIndexes
| Parameter |
Type |
Default |
Details |
indexName |
string |
"" |
|
updateSearchIndex
| Parameter |
Type |
Default |
Details |
indexNameRequired |
string |
"" |
required |
indexDefinition |
json |
"{}" |
required |
Resource: document
aggregate
| Parameter |
Type |
Default |
Details |
query |
json |
"" |
required |
delete
| Parameter |
Type |
Default |
Details |
query |
json |
"{}" |
required |
find
| Parameter |
Type |
Default |
Details |
options |
collection |
{} |
keys: limit, skip, sort, projection |
query |
json |
"{}" |
required |
findOneAndReplace
| Parameter |
Type |
Default |
Details |
updateKey |
string |
"id" |
required |
fields |
string |
"" |
|
upsert |
boolean |
false |
|
options |
collection |
{} |
keys: dateFields, useDotNotation |
findOneAndUpdate
| Parameter |
Type |
Default |
Details |
updateKey |
string |
"id" |
required |
fields |
string |
"" |
|
upsert |
boolean |
false |
|
options |
collection |
{} |
keys: dateFields, useDotNotation |
insert
| Parameter |
Type |
Default |
Details |
fields |
string |
"" |
|
options |
collection |
{} |
keys: dateFields, useDotNotation |
update
| Parameter |
Type |
Default |
Details |
updateKey |
string |
"id" |
required |
fields |
string |
"" |
|
upsert |
boolean |
false |
|
options |
collection |
{} |
keys: dateFields, useDotNotation |
Common Parameters
| Parameter |
Type |
Default |
Details |
collection |
string |
"" |
required |
Parameter Details
options children:
| Parameter |
Type |
Default |
Details |
limit |
number |
0 |
|
skip |
number |
0 |
|
sort |
json |
"{}" |
|
projection |
json |
"{}" |
|
Example
NODE "mongoDb" @mongo AS "Mongo Db" {
resource: "searchIndexes",
operation: "find",
collection: {{ $json.collection }},
query: "{}",
updateKey: {{ $json.updateKey }}
}