Query this collection using Mongo full text search capabilities: constres=awaitCollection.find({$text:{$search:"math",},}); Expected Behavior I expect the query to return the same data as was returned in themongoshenvironment. I.e., the documents that satisfy the full text search query. ...
Thank you so much@skinnn. I have been working on a database reset script for the last day and nothing I tried was working. Randomly got thedup keyissue. You just saved me more time wasted on this issue. Edit: Oh, correction. Still getting adup key. It seems usingnodemon reset-data...
The thing here is that the portion of the code that updates, could be executed in parallel, for example if you have an endpoint that ultimately ends on this operation, 2 requests could end up on this portion of the code.. and while one does not finishes saving, the other one already f...