# File lib/mongo/operation/update/result.rb, line 73 def upserted_id return nil unless upsert? upsert?.first['_id'] end