custom functions and getAll helper - Convex Community