How do I get the inserted document Id?
smbhuin opened this issue · comments
Hi,
In MongoKitten 5, How do I get the inserted document Id in whenSuccess
block?
I was just deciding how to do this for myself. Luckily I have unique information per insert which I can query back. But alternatively you can generate the ObjectID before you insert. And request that based on that ID
Okay then I have to generate the ObjectID before insert. Thx.