Skip to content

Commit 3113e08

Browse files
authored
Merge pull request #210 from neo4j/1.2-fix-doc
Fix JSDoc for Node, Relationship and PathSegment
2 parents dea74ae + d9de1d9 commit 3113e08

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/v1/graph-types.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
class Node {
2424
/**
2525
* @constructor
26-
* @param {string} identity - Unique identity
26+
* @param {Integer} identity - Unique identity
2727
* @param {Array} labels - Array for all labels
2828
* @param {Object} properties - Map with node properties
2929
*/
@@ -58,9 +58,9 @@ class Node {
5858
class Relationship {
5959
/**
6060
* @constructor
61-
* @param {string} identity - Unique identity
62-
* @param {string} start - Identity of start Node
63-
* @param {string} end - Identity of end Node
61+
* @param {Integer} identity - Unique identity
62+
* @param {Integer} start - Identity of start Node
63+
* @param {Integer} end - Identity of end Node
6464
* @param {string} type - Relationship type
6565
* @param {Object} properties - Map with relationship properties
6666
*/
@@ -95,7 +95,7 @@ class Relationship {
9595
class UnboundRelationship {
9696
/**
9797
* @constructor
98-
* @param {string} identity - Unique identity
98+
* @param {Integer} identity - Unique identity
9999
* @param {string} type - Relationship type
100100
* @param {Object} properties - Map with relationship properties
101101
*/
@@ -107,8 +107,8 @@ class UnboundRelationship {
107107

108108
/**
109109
* Bind relationship
110-
* @param {string} start - Indentity of start node
111-
* @param {string} end - Indentity of end node
110+
* @param {Integer} start - Identity of start node
111+
* @param {Integer} end - Identity of end node
112112
* @return {Relationship} - Created relationship
113113
*/
114114
bind( start, end ) {
@@ -142,9 +142,9 @@ class UnboundRelationship {
142142
class PathSegment {
143143
/**
144144
* @constructor
145-
* @param {string} start - Identity of start Node
146-
* @param {Relationship} rel - Relationship segment
147-
* @param {string} end - Identity of end Node
145+
* @param {Node} start - start node
146+
* @param {Relationship} rel - relationship that connects start and end node
147+
* @param {Node} end - end node
148148
*/
149149
constructor(start, rel, end) {
150150
this.start = start;

0 commit comments

Comments
 (0)