* Resolves TODO from e23354eb4e451bb3171ed89e40a7ebe2e3ca927f.
* TODO: only operates on documents in current view atm -- to do this properly want a transform function on Backend.