Skip to content

Latest commit

 

History

History
88 lines (24 loc) · 1.03 KB

AssociationCypherMethods.rst

File metadata and controls

88 lines (24 loc) · 1.03 KB

AssociationCypherMethods

Constants

  • VALID_REL_LENGTH_SYMBOLS

Files

Methods

#arrow_cypher

Return cypher partial query string for the relationship part of a MATCH (arrow / relationship definition)

ruby

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