diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 0000000..11f368a
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,19 @@
+
+## [2.0.0](https://github.com/angular/angular/compare/1.0.0...2.0.0) (2018-05-01)
+
+### Code Refactoring
+
+* **compiler:** Drop support for the deprecated ``. Use `` instead ([#22783](https://github.com/angular/angular/issues/22783)) ([0ebd577](https://github.com/angular/angular/commit/0ebd577))
+
+
+### Features
+
+* **record:** Support for Node, Relationship, Path, Integer types of returned Record added ([79867e9c13becddd87b7e4d950138e2d60a61fbc](https://github.com/webmaxru/node-red-contrib-neo4j-bolt/commit/79867e9c13becddd87b7e4d950138e2d60a61fbc))
+
+
+### BREAKING CHANGES
+
+* **record:** Instead of returning just `properties` the full Record data returned now. To get the properties use `payload.properties` instead of just `payload`
+
+
+## [1.0.0] (2018-04-30)
\ No newline at end of file
diff --git a/README.md b/README.md
index cf77918..fa00b93 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# Neo4j Bolt with shareable driver
-A Node-RED node with the shareable server configuration that lets you run generic cypher queries on a Neo4j graph database.
+A Node-RED 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.
## Install
@@ -12,9 +12,9 @@ npm install node-red-contrib-neo4j-bolt
## Usage
-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`.
+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.
-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.
+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`.
* Example of hard coded query in the configuration of the node.
```
@@ -46,7 +46,7 @@ msg.params:
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.
-This node uses the [neo4j-driver](https://www.npmjs.com/package/neo4j-driver) package to communicate with neo4j.
+This node uses the [neo4j-driver](https://www.npmjs.com/package/neo4j-driver) package to communicate with Neo4j.
### Runtime information
This node was tested to Node.js v7.4.0 and NPM 5.6.0 on Node-Red v0.18.4
diff --git a/neo4j.html b/neo4j.html
index a5f03c8..977817f 100644
--- a/neo4j.html
+++ b/neo4j.html
@@ -5,9 +5,6 @@
defaults: {
server: {value:"", type:"neo4j-bolt-server", required:true},
name: {value:""},
- url: {value:""},
- username: {value:""},
- password: {value:""},
query: {value: ""}
},
inputs:1,
@@ -21,15 +18,15 @@
@@ -40,12 +37,8 @@
A cypher query can be defined on the node or can be passed in msg.query
. The query can be parameterized and the parameters can be passed in msg.params
as JSON (string or object).
Outputs:
- 1:
If the query returns a single record, it is returned in output #1 as an object (with the Neo4j node properties) in msg.payload
+ 1:
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 msg.payload
2:
If the query returns a multiple records, they are returned in output #2 as an array of objects in msg.payload
-
-
- Supported by Maxim Salnikov. Based on node-red-contrib-nulli-neo4j by Nulli
-
diff --git a/package.json b/package.json
index 3feb479..c722cf8 100644
--- a/package.json
+++ b/package.json
@@ -34,5 +34,5 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
- "version": "1.0.0"
+ "version": "2.0.0"
}