That's basically what we're doing with Triplit (https://triplit.dev), be it, not with SQL--which is a plus for most developers.
const deliveredMessagesQuery = client
.query("messages")
.Where("conversationId", "=", convoId)
.Order("created_at", "DESC")
We love a
``` select {what} from {where} left join {where} on {how} where {why} ```
A simple query, concisely answering every relevant question, while hiding all of the details of how any of it works. Beautiful.
So GraphQL?