Best approaches for getting id of the document in mongodb right after mgo insert()

后端 未结 0 801
鱼传尺愫
鱼传尺愫 2020-12-07 01:21

My code is in go, using mgo. I need to create a document and return the id of the newly created document. The id must be returned to the end client only if the insert went t

相关标签:
回答
  • 消灭零回复
提交回复
热议问题