Closed dbackeus closed 9 years ago
You need to use last_error method. I believe there is a comment to insert
Right you are :+1:
i just got
{ "nInserted" : 1, "nMatched" : 0, "nModified" : 0, "nRemoved" : 0, "nUpserted" : 0, "writeErrors" : [ ] }
from .last_error
:( @datanoise
Since Collection#insert returns nil, any idea how to find out what _id mongodb auto-added to the new document?