Add a transform pipe to transform a query's result to a string