Skip to content

Latest commit

 

History

History
45 lines (28 loc) · 2.26 KB

README.md

File metadata and controls

45 lines (28 loc) · 2.26 KB

n8n-nodes-json-database

This is an n8n node lets you easily and efficiently use JSON files as persistent, hierarchical key-value databases/stores.

n8n is a fair-code licensed workflow automation platform.

Installation
Compatibility
Usage

Resources

Installation

Follow the installation guide in the n8n community nodes documentation. The npm name for this package is @n-octo-n/n8n-nodes-json-database.

Compatibility

Tested on n8n 1.4.0 as of 2023/08/31.

Usage

Operations:

  • Read From Database
  • Write To Database

Common Parameters:

  • Query Path (optional): The path on which to act on in the JSON tree. Supports the standard JavaScript dot-and-bracket property access notation. Leaving the field empty will make the node act on the root of the JSON tree.
  • File Path (optional): The system path to the JSON file in which to read/write the data. Leaving the field empty, if everything goes well, will make the node use the default global database (which should be located in ~/.n8n/JsonDatabase.Global.json).

Write-specific parameters:

  • Data Source (required): only one of the following options:
    • Source Object Key (required): An object key from the current input context (as set by immediately preceding nodes) to read data from. For example, the name of a property specified via a Set node, placed immediately before the JSON Database node.
    • Source JSON String (optional): Any JSON string that can be parsed and evaluated as an object in JavaScript. Leaving the field empty will interally force the value to be considered undefined, and will thus simply delete the destination branch in the JSON tree.

Resources