You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to ask your advice in the following task.
Before adding a new document to a MongoDB (via POST method) I need to calculate some of its fields' values. In order to do that I need to get another two documents from another collection (all collections are handled by the same app).
I seems to me that InsertEventHandler hook will come in handy here. But it's not clear to me how use it properly in that task. Might it be the http.NewRequest ?
Thanks in advance.
The text was updated successfully, but these errors were encountered:
Hello there.
I would like to ask your advice in the following task.
Before adding a new document to a MongoDB (via POST method) I need to calculate some of its fields' values. In order to do that I need to get another two documents from another collection (all collections are handled by the same app).
I seems to me that
InsertEventHandler
hook will come in handy here. But it's not clear to me how use it properly in that task. Might it be thehttp.NewRequest
?Thanks in advance.
The text was updated successfully, but these errors were encountered: