Add mongooseResource.aggregate helper