ladjs / mongoose-slug-plugin

Slugs for Mongoose with history and i18n support (uses speakingurl by default, but you can use any slug library such as limax, slugify, mollusc, or slugme)
https://lad.js.org
MIT License
22 stars 9 forks source link

Support common paranoid libraries #1

Open niftylettuce opened 6 years ago

niftylettuce commented 6 years ago

e.g. https://github.com/euqen/mongoose-paranoid-plugin/issues/6

KClough commented 7 months ago

I saw an issue today related to mongoose-delete

If there is a unique key on the slug, and the most recent record with the desired slug was deleted, there is a conflict.

Workaround is to update the slug before deleting to insure uniqueness.