<p>Hi. Is there any clean way to implement soft delete in mgo like the one in "gorm" ? I can add the detetedAt field myself and also update it myself, but I couldn't find any clean way to scope "all" the queries to make sure that deletedAt is not nil. So is there any way to do it? Thank you.</p>
<hr/>**评论:**<br/><br/>SerialMiller: <pre><p>AFAIK mgo is a driver, nothing more nothing less. Guess you're responsible yourself for implementing stuff as soft-deletes etc.</p></pre>