In my NextJS + MongoDB project, I have an API at api/groups/new.js
that creates a new Group
Object.
Is there a simple way to generate a unique slug
parameter for each Group
that's created based on the Group's name
?
In my NextJS + MongoDB project, I have an API at api/groups/new.js
that creates a new Group
Object.
Is there a simple way to generate a unique slug
parameter for each Group
that's created based on the Group's name
?