Loop through ctx.payload.hits.hits in transform

I have discovered my issue. The syntax does not allow for ";" to appear after closing the loop.
ie
" ctx.payload.transform.add(document) } ; "
becomes:
" ctx.payload.transform.add(document) } "

1 Like