Hub
Pricing About
ComponentComponent

Post and Commit neo4j Transaction (insecure)

sjporter profile image
Version1.0.0Latest, created on 
Dec 20, 2023 7:11 PM
Drag & drop
Like
Use or download
This node is a proof-of-concept which allows you to post one transaction to a local instance of a neo4j database. It's currently designed to post and commit a single transaction; it's not tested for multiple transactions. However, please note that multiple statements can be included in a single transaction. A transaction is structured as a single JSON blob with one or more Cypher statement(s) which are then submitted to the neo4j transaction endpoint as a POST request. Here is an example of a single statement: { "statements" : [ { "statement" : "create (Row0: Person {firstName:'john', lastName:'doe'})" }] } The statement above would create a new Person node with firstName and lastName attributes. Notice that there is a "statements" property in the JSON body which contains an array of "statement" propert(ies). It's easy to concatenate multiple statements into a single transaction like so: { "statements": [{ "statement": "create (Row0: Person {firstName:'santa', lastName:'claus'})" }, { "statement": "create (Row1: Person {firstName:'yankee', lastName:'doodle'})" }, { "statement": "create (Row2: Person {firstName:'chuck', lastName:'norris'})" }] } This node assumes your neo4j database is running on http://localhost:{{some_port_number}} and also assumes that you're using basic credentials (username and password) to authenticate with your neo4j database. If you have authentication disabled you may need to alter the node accordingly. Details on how to create a neo4j database, create a user, assign it a role, and documentation on the Cypher syntax can all be found here: https://neo4j.com/docs/

Component details

Input ports
  1. Type: Table
    JSON Request
    A JSON request structured similarly to the one in the description above.
Output ports
  1. Type: Table
    POST Results
    Results of both the creation of the transaction and the act of committing the transaction.

Used extensions & nodes

Created with KNIME Analytics Platform version 4.1.2
  • Go to item
    KNIME CoreTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.1.2

    knime
  • Go to item
    KNIME JSON-ProcessingTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.1.0

    knime
  • Go to item
    KNIME Quick FormsTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.1.2

    knime
  • Go to item
    KNIME REST Client ExtensionTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.1.1

    knime

This component does not have nodes, extensions, nested components and related workflows

Legal

By using or downloading the component, you agree to our terms and conditions.

KNIME
Open for Innovation

KNIME AG
Talacker 50
8001 Zurich, Switzerland
  • Software
  • Getting started
  • Documentation
  • Courses + Certification
  • Solutions
  • KNIME Hub
  • KNIME Forum
  • Blog
  • Events
  • Partner
  • Developers
  • KNIME Home
  • Careers
  • Contact us
Download KNIME Analytics Platform Read more about KNIME Business Hub
© 2025 KNIME AG. All rights reserved.
  • Trademarks
  • Imprint
  • Privacy
  • Terms & Conditions
  • Data Processing Agreement
  • Credits