by MuffinFlavored · 6y ago · 0 comments
``` const { accountId } = decodeJwt(req.headers.authorization) SELECT * FROM items WHERE account_id = :accountId ```
I get that it's about the exact opposite of what the article is trying to do but it looks a whole lot easier to maintain.
At some level of complexity SQL gets hard to migrate, upgrade, switch vendors and even cloud providers