Skip to content

Commit

Permalink
Merge pull request maxdemarzi#61 from kamranjon/batch
Browse files Browse the repository at this point in the history
fixing direction issue in find
  • Loading branch information
kamranjon committed Nov 12, 2013
2 parents 6a352b3 + 111f1e7 commit c3f5af7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GIT
remote: https://github.com/andreasronge/neo4j-cypher.git
revision: 36766b29714b623c7df24d6a682ba1628e3bf169
revision: 05e589ca79fb8e5e1abb2e4d2a9192f46d173660
specs:
neo4j-cypher (1.0.1)

Expand Down
2 changes: 1 addition & 1 deletion lib/deja/bridge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def create_relationship(start_node, end_node, name, attributes = {})

def get_relationship(id)
cypher {
r = node.as(:root) < Deja::Bridge.rel(id, self) < node.as(:end)
r = node.as(:end) < Deja::Bridge.rel(id, self) < node.as(:root)
Deja::Bridge.apply_options(r, {:return_root => :root_rel_end})
}
end
Expand Down
2 changes: 1 addition & 1 deletion spec/node_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class HasHate < Relationship; end

describe Node do
after :each do
#Deja.neo.execute_query("START n=node(*) MATCH n-[r?]->() WHERE ID(n) <> 0 DELETE r DELETE n")
Deja.neo.execute_query("START n=node(*) MATCH n-[r?]->() WHERE ID(n) <> 0 DELETE r DELETE n")
end

before :each do
Expand Down

0 comments on commit c3f5af7

Please sign in to comment.