Closed SpellChucker closed 2 years ago
how you solve it ?
I didn't 😆 I switched to sqlite. The only way I could think of fixing it was overwriting the entire sub-collection (orders in my example) with the update. Or splitting the sub collection out into it's own top-level key. But in that case it would just be a relational DB so I just switched.
@SpellChucker i found push
is not a lodash function, so i use db.data[key].push(obj)
instead of db.chain.get(key).push(obj).value()
, it is work well
I've tried just about everything, but I cannot get
lodash
to update my database. Maybe I have a fairly complex db but I don't think so:I am trying to add an order to this strategy:
I've tried:
The DB data just does not change. Any idea? It works if I just use plain javascript of course, but not with
lodash
.