Transformer to get the last item of a collection
16 17 18
# File 'lib/realize/collection/last.rb', line 16 def transform(resolver, value, time, record) AtIndex.new(index: -1).transform(resolver, value, time, record) end