Using transform in db queries


#1

I have never used transform with collection.find() and I was hoping some simple examples of using it could be posted here.


#2

I give an example of using transform here.

You should be aware that transform does not run on the find(), but on the fetch() - which may be implied, e.g. by rendering a cursor with Blaze, or using findOne().