@@ -114,14 +114,14 @@ class ResultSet {
114114 let prop = props [ i ] ;
115115 var propIndex = prop [ 0 ] ;
116116 let prop_name = this . _graph . getProperty ( propIndex ) ;
117- //will try to get the right property for at most 10 times
117+ // will try to get the right property for at most 10 times
118118 var tries = 0 ;
119119 while ( prop_name == undefined && tries < 10 ) {
120120 prop_name = await this . _graph . fetchAndGetProperty ( propIndex ) ;
121121 tries ++ ;
122122 }
123123 if ( prop_name == undefined ) {
124- console . log ( "unable to retrive property name value for propety index " + propIndex ) ;
124+ console . warn ( "unable to retrive property name value for propety index " + propIndex ) ;
125125 }
126126 let prop_value = this . parseScalar ( prop . slice ( 1 , prop . length ) ) ;
127127 properties [ prop_name ] = prop_value ;
@@ -136,14 +136,14 @@ class ResultSet {
136136
137137 let node_id = cell [ 0 ] ;
138138 let label = this . _graph . getLabel ( cell [ 1 ] [ 0 ] ) ;
139- //will try to get the right label for at most 10 times
139+ // will try to get the right label for at most 10 times
140140 var tries = 0 ;
141141 while ( label == undefined && tries < 10 ) {
142- tries = await this . _graph . fetchAndGetLabel ( cell [ 1 ] [ 0 ] ) ;
143- x ++ ;
142+ label = await this . _graph . fetchAndGetLabel ( cell [ 1 ] [ 0 ] ) ;
143+ tries ++ ;
144144 }
145145 if ( label == undefined ) {
146- console . log ( "unable to retrive label value for label index " + cell [ 1 ] [ 0 ] ) ;
146+ console . warn ( "unable to retrive label value for label index " + cell [ 1 ] [ 0 ] ) ;
147147 }
148148 let properties = await this . parseEntityProperties ( cell [ 2 ] ) ;
149149 let node = new Node ( label , properties ) ;
@@ -160,14 +160,14 @@ class ResultSet {
160160
161161 let edge_id = cell [ 0 ] ;
162162 let relation = this . _graph . getRelationship ( cell [ 1 ] ) ;
163- //will try to get the right relationship type for at most 10 times
163+ // will try to get the right relationship type for at most 10 times
164164 var tries = 0 ;
165165 while ( relation == undefined && tries < 10 ) {
166166 relation = await this . _graph . fetchAndGetRelationship ( cell [ 1 ] )
167167 tries ++ ;
168168 }
169169 if ( relation == undefined ) {
170- console . log ( "unable to retrive relationship type value for relationship index " + cell [ 1 ] ) ;
170+ console . warn ( "unable to retrive relationship type value for relationship index " + cell [ 1 ] ) ;
171171 }
172172 let src_node_id = cell [ 2 ] ;
173173 let dest_node_id = cell [ 3 ] ;
0 commit comments