class CypherBuilder::Match

Public Class Methods

new(*parts) click to toggle source
# File lib/cypher_builder/match.rb, line 9
def initialize(*parts)
  @parts = wrap(*parts)
end

Public Instance Methods

as_cypher(payload:, context: ) click to toggle source
# File lib/cypher_builder/match.rb, line 13
def as_cypher(payload:, context: )
  'MATCH ' + resolve(@parts, separator: ', ', payload: payload, context: context.add(self))
end