diff --git a/lib/active_graph/relationship/query.rb b/lib/active_graph/relationship/query.rb index 1616599cf..6b476be34 100644 --- a/lib/active_graph/relationship/query.rb +++ b/lib/active_graph/relationship/query.rb @@ -15,7 +15,7 @@ def find(id) # Loads the relationship using its neo_id. def find_by_id(key) query = ActiveGraph::Base.new_query - result = query.match('()-[r]-()').where("r.#{id_property_name}" => key).limit(1).return(:r).first + result = query.match("()-[r:`#{mapped_element_name}`]-()").where("r.#{id_property_name}" => key).limit(1).return(:r).first result&.send(:[], :r) end diff --git a/lib/active_graph/version.rb b/lib/active_graph/version.rb index eed5840c7..a76f71995 100644 --- a/lib/active_graph/version.rb +++ b/lib/active_graph/version.rb @@ -1,3 +1,3 @@ module ActiveGraph - VERSION = '12.0.0.beta.2' + VERSION = '12.0.0.beta.3' end