-
Notifications
You must be signed in to change notification settings - Fork 86
Open
Labels
enhancementNew feature or requestNew feature or request
Description
First of all, let me thank you for this cool library :)
Now, I'm really considering using Redis Enterprise as a primary DB in the future projects!
So, my question arises from this section in the readme https://github.com/redis/redis-om-node#-embedding-your-own-logic-into-entities
We can fetch "relations" in our entities, but I'm more interested in updating those relations as a part of a transaction. I can see that currently, saving an entity requires you to call repository.save(entity)
, but what about related entries? What if I need to update an entity, some sub-entity and commit or discard all of the changes?
It would be cool to have something like
getCurrentClient().startTransaction(() => {
repository1.save(entity);
repository2.save(subentity);
}).then(...).catch(...)
sohai, jr-litmot and DmPrkp
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request