Open argupta23 opened 1 year ago
Could you have a look at the example folder - it has pretty much all use cases typed correctly?
@meabed, I did look at it earlier, but was not able to get it to work. I will close this ticket for now
Would you be able to create codesandbox with the code you tried and error so I could have a look and fix it
I can create a small repo and share the files with you. Please let me know if that works for you.
I do have a question in the meantime. While Mongodb supports "transaction / session" with rollback on abort, how does it work with elasticsearch?
What I mean by that is the following. When using transaction / session my understanding is that mongodb saves an interim copy of the document, waits for other processes (relation updates etc...) to finish and on success commits the transaction and updates the collection. If any step in the middle fails and the transaction aborts, all commits are rolled back and nothing gets saved to mongodb.
In the current state of the package, my understanding is that the iterim copy of the document is also saved to Elasticsearch, but when the abort occurs, mongodb cleans itself up (becuase there is no commit) but there is no mechanism within the current package to roll back / undo the document from elasticsearch. Is that correct?
thanks
Yes correct
@meabed
Your Environments
Expected Behavior
migrating from mongoosastic to mongoosastic-ts generates error
Actual Behavior
In my case I have the following.
Mongoosastic generates the below error when including Interface.
Error Stack
Please let me know what I am doing wrong.
Thanks