Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

n8n-nodes-couchbase

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

n8n-nodes-couchbase - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

41

dist/nodes/CouchbaseNode/CouchbaseNode.node.js

@@ -40,2 +40,14 @@ "use strict";

{
name: 'Delete',
value: 'remove',
description: 'Delete document in couchbase',
action: 'Delete document in couchbase',
},
{
name: 'Import',
value: 'import',
description: 'Import document in couchbase',
action: 'Import document in couchbase',
},
{
name: 'Read',

@@ -52,8 +64,2 @@ value: 'find',

},
{
name: 'Delete',
value: 'remove',
description: 'Delete document in couchbase',
action: 'Delete document in couchbase',
},
],

@@ -89,3 +95,3 @@ default: 'insert',

{
displayName: 'Value',
displayName: 'New Value',
name: 'myValue',

@@ -128,2 +134,15 @@ type: 'string',

},
{
displayName: 'Insert Json',
name: 'myDocument',
type: 'json',
displayOptions: {
show: {
operation: [''],
},
},
default: '',
placeholder: 'Placeholder value',
description: 'The description text',
},
],

@@ -149,2 +168,4 @@ };

for (let itemIndex = 0; itemIndex < items.length; itemIndex++) {
const uuid = require("uuid");
const id = uuid.v4();
try {

@@ -170,3 +191,3 @@ myNewValue = this.getNodeParameter('myValue', itemIndex, '');

item.json['myDocument'] = myDocument;
await collection.insert(myDocument, item.json);
await collection.insert(id, item.json);
}

@@ -192,2 +213,6 @@ else if (operation === 'update') {

}
else if (operation === 'import') {
item = items[itemIndex];
await collection.insert(id, item);
}
}

@@ -194,0 +219,0 @@ catch (error) {

4

dist/package.json
{
"name": "n8n-nodes-couchbase",
"version": "0.1.2",
"description": "N8N Node to add, get, update and delete data to couchbase",
"version": "0.1.3",
"description": "N8N Node to add, get, update, delete and import data to couchbase",
"keywords": [

@@ -6,0 +6,0 @@ "n8n-community-node-package"

{
"name": "n8n-nodes-couchbase",
"version": "0.1.2",
"description": "N8N Node to add, get, update and delete data to couchbase",
"version": "0.1.3",
"description": "N8N Node to add, get, update, delete and import data to couchbase",
"keywords": [

@@ -6,0 +6,0 @@ "n8n-community-node-package"

@@ -9,6 +9,7 @@ N8N Nodes Couchbase

• Go to Settings > Community Nodes :
• Select 'Install a community node'
• Type in "n8n-nodes-couchbase" and hit Install
• Go to Settings > Community Nodes :
• Select 'Install a community node'
• Type in "n8n-nodes-couchbase" and hit Install
For more information on installing community nodes, visit the Community nodes docs page.

@@ -18,23 +19,25 @@

• Insert documents
• Update documents
• Find documents
• Remove documents
• Create documents
• Read documents
• Update documents
• Remove documents
• Import documents
Couchbase Credentials
Create a Couchbase account and you will need to input the following:
Create a Couchbase account and you will need to input the following:
• Connection String
• Connection String
1. Couchbase Server, you can use this connection string couchbase://127.0.0.1/?connectionTimeout=1200
2. Couchbase Capella, you can navigate to the tab named Connect and copy the connection string.
1. Couchbase Server, you can use this connection string couchbase://127.0.0.1/?connectionTimeout=1200
• Username
• Password
• Bucket
• Scope
• Collection
2. Couchbase Capella, you can navigate to the tab named Connect and copy the connection string.
• Username
• Password
• Bucket
• Scope
• Collection
Those credentials are needed in order for you to connect to Couchbase.

@@ -44,34 +47,23 @@

This workflow allows you to insert a document into a Couchbase. This example usage workflow would use the following three nodes. - Start - Set - Couchbase
This workflow allows you to insert a document into a Couchbase. This example usage workflow would use the following three nodes. - Start - Set - Couchbase
The final workflow should look like the following image.
<img width="468" alt="image" src="https://github.com/maruakinu/n8n-nodes-couchbase/assets/100325935/b7947dde-af19-4b40-9c85-b1c5716fa332">
1. Start node
The start node exists by default when you create a new workflow.
1. Start node
The start node exists by default when you create a new workflow.
2. Set node
1. Click on the Add Value button and select 'String' from the dropdown list.
2. Enter the Property Name of the Value in the Name field.
3. Enter the value for the name in the Value field.
4. Click on Execute Node to run the node.
2. Set node
3. Couchbase node (Inserting Data)
1. Select 'Insert' from the Operation dropdown list.
2. You will have to enter credentials for the Couchbase. Click the Couchbase Node and enter your credentials.
3. At the bottom, enter the value that you want to insert in Couchbase.
4. Click on Execute Node to run the node.
1. Click on the Add Value button and select 'String' from the dropdown list.
2. Enter the Property Name of the Value in the Name field.
3. Enter the value for the name in the Value field.
4. Click on Execute Node to run the node.
3. Couchbase node (Inserting Data)
1. Select 'Insert' from the Operation dropdown list.
2. You will have to enter credentials for the Couchbase. Click the Couchbase Node and enter your credentials.
3. At the bottom, enter the value that you want to insert in Couchbase.
4. Click on Execute Node to run the node.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc