I have two ObjectId in my document. One is getting created automatically while inserting the data in a collection. But the other one I need to generate manually. Everything is happening inside a trigger function.
Can anyone help me out that how can I generate ObjectId manually inside my trigger function so that I can insert document in my respective collection.
Urgent help is required. In case of any detail is required kindly le me know.
Thanks in advance.