Hi, I have a style/TS question. The guide suggests...
# guide
d
Hi, I have a style/TS question. The guide suggests here creating a convenience DB-interaction object (in the
libs/dynamodb-lib.js
file) essentially acting as a DAO. Is this more convenient this way rather than having a standard JS class containing the same methods and a constructor for
client
? I’m used to seeing domain-driven interfaces for DAO’s and it feels weird to write an interface for a convenience object like this that I can use in my domain logic, but I definitely want to understand the benefits. Thanks!