class ActiveGraph::Shared::NodeQueryFactory

Protected Instance Methods

create_query() click to toggle source
   # File lib/active_graph/shared/query_factory.rb
70 def create_query
71   return match_query if graph_object.persisted?
72   labels = graph_object.labels_for_create.map { |l| ":`#{l}`" }.join
73   base_query.create("(#{identifier}#{labels} $#{identifier}_params)").params(identifier_params => graph_object.props_for_create)
74 end
match_string() click to toggle source
   # File lib/active_graph/shared/query_factory.rb
66 def match_string
67   "(#{identifier})"
68 end