diff --git a/.gitignore b/.gitignore index 29e89a2..c281909 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ +neo4j pkg/* *.gem .bundle -log/* \ No newline at end of file +log/* diff --git a/lib/neography/node_traverser.rb b/lib/neography/node_traverser.rb index 5942aa1..2899a9b 100644 --- a/lib/neography/node_traverser.rb +++ b/lib/neography/node_traverser.rb @@ -116,7 +116,7 @@ def iterator options["return filter"] = @filter unless @filter.nil? options["depth"] = @depth unless @depth.nil? - if @relationships[0]["type"].nil? + if @relationships[0]["type"].empty? rels = @from.neo_server.get_node_relationships(@from, @relationships[0]["direction"]) case @relationships[0]["direction"] when "in"