lib/cypher_builder/alias.rb in cypher_builder-0.0.3 vs lib/cypher_builder/alias.rb in cypher_builder-0.0.4
- old
+ new
@@ -9,10 +9,10 @@
def initialize(field, an_alias)
@field = wrap(field)
@an_alias = an_alias
end
- def as_cypher(payload:, context: )
+ def as_cypher(payload:, context:)
sprintf('%s AS %s', resolve(@field, payload: payload, context: context.add(self)), @an_alias)
end
end
end
\ No newline at end of file