qiniu / qmgo

Qmgo - The Go driver for MongoDB. It‘s based on official mongo-go-driver but easier to use like Mgo.
Apache License 2.0
1.3k stars 155 forks source link

how to use soft delete #183

Open lucifez385 opened 3 years ago

lucifez385 commented 3 years ago

how to use soft delete

michaelzx commented 3 years ago

+1

cupen commented 2 years ago

No. It's a business logic. You should use a field like isDeleed bool, then find(xxx and isDeleted = false), and don't forget the index. That's all, very easy.

prakashchokalingam commented 1 year ago

+1