Hi there. I’m trying to have a field be computed at publish (it’s in the transform of the collection) and sort by it before sending to the client side. The main reason for this is because we are doing pagination to a degree.
Essentially, we originally had it that a Meteor Hook would compute this field every time that a document updated, and then would sort on the publication and then limit only on the client-side, but now our client wants to tweak the parameters should he see fit, so we need to have this computed at publish.
So, how could I transform the document, sort on that transformed field before fetch, all while limiting for pagination?