Closed amsam0 closed 3 years ago
Could you try adding db.chain.defaults(...).value()
, value
executes chain
.
That fixed both of them, maybe this should be added to the lodash part of the readme or something?
I've added a comment, thanks for the feedback
Hi,
I recently came across a problem when using
db.chain
. It may also affect other methods but I'm not sure.db.chain.set()
If your database is this:
{ "test": { "test2": 1 } }
And your code is this:Running it will output this:
db.chain.defaults()
If your database is empty (
{}
) and your code is this:It will output this:
This only started happening when I moved to v2.
Thanks for looking at this issue and sorry for the large size