interface MongoDbNodeParameters {
collection?: string;
fields?: string;
indexDefinition?: string;
indexName?: string;
indexNameRequired?: string;
indexType?: "search" | "vectorSearch";
operation?:
| "update"
| "delete"
| "insert"
| "find"
| "aggregate"
| "findOneAndReplace"
| "findOneAndUpdate"
| "createSearchIndex"
| "dropSearchIndex"
| "listSearchIndexes"
| "updateSearchIndex";
options?: | {
limit?: number;
projection?: string;
skip?: number;
sort?: string;
}
| { dateFields?: string; useDotNotation?: boolean };
query?: string;
resource?: "document" | "searchIndexes";
updateKey?: string;
upsert?: boolean;
}Properties§
§§§§§§§§§§§
readonly collection?: string§
readonly fields?: stringComma-separated list of the fields to be included into the new document
readonly index Definition?: stringThe search index definition Default: "{}" Type options: {"alwaysOpenEditWindow":true}
readonly index Name?: stringIf provided, only lists indexes with the specified name
readonly index Name Required?: stringThe name of the search index
readonly index Type?: "search" | "vectorSearch"The search index index type Default: "vectorSearch"
readonly operation?:
| "update"
| "delete"
| "insert"
| "find"
| "aggregate"
| "findOneAndReplace"
| "findOneAndUpdate"
| "createSearchIndex"
| "dropSearchIndex"
| "listSearchIndexes"
| "updateSearchIndex"Default: "find"
readonly options?:
| {
limit?: number;
projection?: string;
skip?: number;
sort?: string;
}
| { dateFields?: string; useDotNotation?: boolean }Add query options Default: {}
readonly query?: stringMongoDB aggregation pipeline query in JSON format Type options: {"alwaysOpenEditWindow":true}
readonly resource?: "document" | "searchIndexes"Default: "document"
readonly update Key?: stringName of the property which decides which rows in the database should be updated. Normally that would be "id". Default: "id"
readonly upsert?: booleanWhether to perform an insert if no documents match the update key
MongoDB Collection