V mongo shell to můžete použít k načtení _id :
user._id.str
nebo
user._id.toString()
Viz dokumentace:https://docs.mongodb.org/manual/reference /method/ObjectId.valueOf/
V mongo shell to můžete použít k načtení _id :
user._id.str
nebo
user._id.toString()
Viz dokumentace:https://docs.mongodb.org/manual/reference /method/ObjectId.valueOf/