How to access WriteResult in PyMongo?
<p>I have the following in my python file:</p>

<pre><code>result = db.clients.update_one({'id':client['client']['id']},{'$set':{
    "name" : client['client']['name'],
}},True)
</code></pre>

<p>I want to retrieve how many records were inserted and how many were updated. I know I have to use WriteResults, but I can't seem to figure out how.</p>

<p>*this is one  a loop
*The update/insert works. I just don't know how to get the status of inserts vs updates</p>

<p>I am new to python and new to pymongo :)</p>