class Neo4j::Shared::RelQueryFactory
Protected Instance Methods
create_query()
click to toggle source
# File lib/neo4j/shared/query_factory.rb 83 def create_query 84 return match_query if graph_object.persisted? 85 create_props, set_props = filtered_props 86 base_query.send(graph_object.create_method, query_string).break 87 .set(identifier => set_props) 88 .params(:"#{identifier}_create_props" => create_props) 89 end
match_string()
click to toggle source
# File lib/neo4j/shared/query_factory.rb 79 def match_string 80 "(#{graph_object.from_node_identifier})-[#{identifier}]->()" 81 end
Private Instance Methods
filtered_props()
click to toggle source
# File lib/neo4j/shared/query_factory.rb 93 def filtered_props 94 Neo4j::Shared::FilteredHash.new(graph_object.props_for_create, graph_object.creates_unique_option).filtered_base 95 end
query_string()
click to toggle source
# File lib/neo4j/shared/query_factory.rb 97 def query_string 98 "(#{graph_object.from_node_identifier})-[#{identifier}:`#{graph_object.type}` {#{identifier}_create_props}]->(#{graph_object.to_node_identifier})" 99 end