Skip to content

Commit a4e2d65

Browse files
committed
v2 added
1 parent 79867e9 commit a4e2d65

File tree

4 files changed

+28
-16
lines changed

4 files changed

+28
-16
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<a name="2.0.0"></a>
2+
## [2.0.0](https://github.com/angular/angular/compare/1.0.0...2.0.0) (2018-05-01)
3+
4+
### Code Refactoring
5+
6+
* **compiler:** Drop support for the deprecated `<template>`. Use `<ng-template>` instead ([#22783](https://github.com/angular/angular/issues/22783)) ([0ebd577](https://github.com/angular/angular/commit/0ebd577))
7+
8+
9+
### Features
10+
11+
* **record:** Support for Node, Relationship, Path, Integer types of returned Record added ([79867e9c13becddd87b7e4d950138e2d60a61fbc](https://github.com/webmaxru/node-red-contrib-neo4j-bolt/commit/79867e9c13becddd87b7e4d950138e2d60a61fbc))
12+
13+
14+
### BREAKING CHANGES
15+
16+
* **record:** Instead of returning just `properties` the full Record data returned now. To get the properties use `payload.properties` instead of just `payload`
17+
18+
<a name="1.0.0"></a>
19+
## [1.0.0] (2018-04-30)

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Neo4j Bolt with shareable driver
22

3-
A <a href="http://nodered.org" target="_new">Node-RED</a> node with the shareable server configuration that lets you run generic cypher queries on a Neo4j graph database.
3+
A <a href="http://nodered.org" target="_new">Node-RED</a> node with the shareable server configuration that lets you run generic cypher queries on a Neo4j graph database and receive all types of Neo4j records.
44

55
## Install
66

@@ -12,9 +12,9 @@ npm install node-red-contrib-neo4j-bolt
1212

1313
## Usage
1414

15-
You specify a cypher query in the configuration. The parameters for the query (if needed) are read from `msg.params`. The cypher query can also be passed to the node as `msg.query`.
15+
First, you define the Neo4j bolt URL and the basic authentication username and password in the configuration node. This node creates a driver which will be shared across all Neo4j-Bolt nodes. Each node creates its own driver session.
1616

17-
You define the Neo4j bolt URL and the basic authentication username and password in the configuration node which you can share across multiple neo4j-bolt nodes.
17+
You can specify a cypher query in the node configuration or pass to the node as `msg.query`. The parameters for the query (if needed) are read from `msg.params`.
1818

1919
* Example of hard coded query in the configuration of the node.
2020
```
@@ -46,7 +46,7 @@ msg.params:
4646

4747
The node has two outputs. If the query returns only 1 record, the requested properties of the node are sent to output #1. If the query returns multiple records, an array of requested properties of the nodes are sent to output #2.
4848

49-
This node uses the [neo4j-driver](https://www.npmjs.com/package/neo4j-driver) package to communicate with neo4j.
49+
This node uses the [neo4j-driver](https://www.npmjs.com/package/neo4j-driver) package to communicate with Neo4j.
5050

5151
### Runtime information
5252
This node was tested to Node.js v7.4.0 and NPM 5.6.0 on Node-Red v0.18.4

neo4j.html

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
defaults: {
66
server: {value:"", type:"neo4j-bolt-server", required:true},
77
name: {value:""},
8-
url: {value:""},
9-
username: {value:""},
10-
password: {value:""},
118
query: {value: ""}
129
},
1310
inputs:1,
@@ -21,15 +18,15 @@
2118

2219
<script type="text/x-red" data-template-name="neo4j-bolt">
2320
<div class="form-row">
24-
<label for="node-input-server"><i class="icon-tag"></i> server</label>
21+
<label for="node-input-server"><i class="icon-tag"></i> Server</label>
2522
<input type="text" id="node-input-server" placeholder="server">
2623
</div>
2724
<div class="form-row">
2825
<label for="node-input-name"><i class="icon-tag"></i>Name</label>
2926
<input type="text" id="node-input-name" placeholder="Name">
3027
<br/>
31-
<label for="node-input-query"><i class="icon-tag"></i>Cypher Query (opt)</label>
32-
<textarea id="node-input-query" placeholder="MATCH (o:Object {attrib: 'value'}) RETURN o"></textarea>
28+
<label for="node-input-query"><i class="icon-tag"></i>Cypher Query</label>
29+
<textarea id="node-input-query" placeholder="MATCH (o:Object {attrib: 'value'}) RETURN o" style="width: 70%;"></textarea>
3330
</div>
3431
</script>
3532

@@ -40,12 +37,8 @@
4037
<p>A cypher query can be defined on the node or can be passed in <code>msg.query</code>. The query can be parameterized and the parameters can be passed in <code>msg.params</code> as JSON (string or object).</p>
4138
<p>Outputs:
4239
<ul>
43-
<li><code>1:</code>If the query returns a single record, it is returned in output #1 as an object (with the Neo4j node properties) in <code>msg.payload</code></li>
40+
<li><code>1:</code>If the query returns a single record, it is returned in output #1 as an object with the Neo4j Record (Node, Relationship, Path, Integer) fields in <code>msg.payload</code></li>
4441
<li><code>2:</code>If the query returns a multiple records, they are returned in output #2 as an array of objects in <code>msg.payload</code></li>
4542
</ul>
4643
</p>
47-
48-
<p>
49-
Supported by <a href="https://github.com/webmaxru/">Maxim Salnikov</a>. Based on <a href="https://github.com/nullibrew/node-red-contrib-nulli-neo4j">node-red-contrib-nulli-neo4j</a> by <a href="http://nulli.com">Nulli</a>
50-
</p>
5144
</script>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@
3434
"scripts": {
3535
"test": "echo \"Error: no test specified\" && exit 1"
3636
},
37-
"version": "1.0.0"
37+
"version": "2.0.0"
3838
}

0 commit comments

Comments
 (0)