mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
feature: add MongoDB credential testing and two operations: findOneAndReplace and findOneAndUpdate (#3901)
* feature: add MongoDB credential testing and two operations: findOneAndReplace and findOneAndUpdate Co-authored-by: Anas Naim <anas.naim@hotmail.com>
This commit is contained in:
@@ -20,6 +20,7 @@ export const nodeDescription: INodeTypeDescription = {
|
||||
{
|
||||
name: 'mongoDb',
|
||||
required: true,
|
||||
testedBy: 'mongoDbCredentialTest',
|
||||
},
|
||||
],
|
||||
properties: [
|
||||
@@ -47,6 +48,18 @@ export const nodeDescription: INodeTypeDescription = {
|
||||
description: 'Find documents',
|
||||
action: 'Find documents',
|
||||
},
|
||||
{
|
||||
name: 'Find And Replace',
|
||||
value: 'findOneAndReplace',
|
||||
description: 'Find and replace documents',
|
||||
action: 'Find and replace documents',
|
||||
},
|
||||
{
|
||||
name: 'Find And Update',
|
||||
value: 'findOneAndUpdate',
|
||||
description: 'Find and update documents',
|
||||
action: 'Find and update documents',
|
||||
},
|
||||
{
|
||||
name: 'Insert',
|
||||
value: 'insert',
|
||||
@@ -207,7 +220,7 @@ export const nodeDescription: INodeTypeDescription = {
|
||||
type: 'string',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: ['update'],
|
||||
operation: ['update', 'findOneAndReplace', 'findOneAndUpdate'],
|
||||
},
|
||||
},
|
||||
default: 'id',
|
||||
@@ -222,7 +235,7 @@ export const nodeDescription: INodeTypeDescription = {
|
||||
type: 'string',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: ['update'],
|
||||
operation: ['update', 'findOneAndReplace', 'findOneAndUpdate'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
@@ -235,7 +248,7 @@ export const nodeDescription: INodeTypeDescription = {
|
||||
type: 'boolean',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: ['update'],
|
||||
operation: ['update', 'findOneAndReplace', 'findOneAndUpdate'],
|
||||
},
|
||||
},
|
||||
default: false,
|
||||
@@ -247,7 +260,7 @@ export const nodeDescription: INodeTypeDescription = {
|
||||
type: 'collection',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: ['update', 'insert'],
|
||||
operation: ['update', 'insert', 'findOneAndReplace', 'findOneAndUpdate'],
|
||||
},
|
||||
},
|
||||
placeholder: 'Add Option',
|
||||
|
||||
Reference in New Issue
Block a user