4 ms·
(2)-ish patterns are more what I have in mind, but note that as soon as you're expecting the same `db.query(hats)` to give you the data you need for both (1) an
by Theaetetus 11mo ago
(2)-ish patterns are more what I have in mind, but note that as soon as you're expecting the same `db.query(hats)` to give you the data you need for both (1) and (2), you might already be pretty far down the wrong road.
- Noumenon72 11mo agoI'm trying this right now and I don't get it. There's no difference between HatsService getWearableHats() { return db.query(Hats).toDto() } getThrowableHats() { return db.otherQuery(Hats).toDto() } and # wearable.py getWearableHats() { return db.query(Hats).toDto() } # throwable.py getThrowableHats() { return db.otherQuery(Hats).toDto() }