W
W
WizardW2020-01-19 20:54:15
Node.js
WizardW, 2020-01-19 20:54:15

Mongoose-slug-plugin is it possible to add your own slug term while maintaining uniqueness?

I use this lib for the slug field, made the slug field unique, after saving the object this field is added and in general everything https://www.npmjs.com/package/mongoose-slug-plugin
From the client I get the slug field, user option , how to insert this line into the slug in the Mongoose model and check for uniqueness?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question