Module: ActiveGraph::Node::HasN::AssociationCypherMethods
- Included in:
- Association
- Defined in:
- lib/active_graph/node/has_n/association_cypher_methods.rb
Instance Method Summary collapse
-
#arrow_cypher(var = nil, properties = {}, create = false, reverse = false, length = nil) ⇒ Object
Return cypher partial query string for the relationship part of a MATCH (arrow / relationship definition).
Instance Method Details
#arrow_cypher(var = nil, properties = {}, create = false, reverse = false, length = nil) ⇒ Object
Return cypher partial query string for the relationship part of a MATCH (arrow / relationship definition)
6 7 8 9 10 11 12 13 14 |
# File 'lib/active_graph/node/has_n/association_cypher_methods.rb', line 6 def arrow_cypher(var = nil, properties = {}, create = false, reverse = false, length = nil) validate_origin! if create && length.present? fail(ArgumentError, 'rel_length option cannot be specified when creating a relationship') end direction_cypher(get_relationship_cypher(var, properties, create, length), create, reverse) end |