Monday 20 November 2017

Mongoose Unique username

I tried to make to It refuse to Insert the user to the database If It already Exists but It doesn't workI want It to refuse to Insert the new username If It already ExistsHere's my Code so far http://ift.tt/2zSaE5V is a mongoose Schema and unique and required are set as true

Submitted November 20, 2017 at 01:15PM by Cangasevere

No comments:

Post a Comment