PathQL: Nested JSON queries
SQL gives us rows and columns, while APIs usually need nested JSON. That mismatch is small, but it creates a lot of repetitive code. Most backends choose one of two strategies: use a join and transform the resulting rows into nested JSON, or run multiple queries (often one per table) and then match each result set back to its parent. That code is not hard, but it is everywhere. And as Robert C. Martin reminds us in Clean Code, duplication is a design smell, even when each copy is “small”. PathQL is my attempt to remove that duplication while keeping SQL in the center. ...