Use proxy instead of monkeypatching DB function
to print logs and retry queries for database work we monkeypatch the query method, but we could definitely use javascript's Proxy to intercept calls to the DB object and make our code cleaner.
to print logs and retry queries for database work we monkeypatch the query method, but we could definitely use javascript's Proxy to intercept calls to the DB object and make our code cleaner.