Sharing logic between queries and mutations - Convex Community