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