Sign in
Log inSign up

How do i create a model using one schema using mongoose?

Lem's photo
Lem
·Feb 26, 2018

Im still new to programming so please go easy on me lol. Im planning on creating 2 types of users in my project a normal user and an Admin user. I was able to implement a local strategy for normal users and its already working but I cant seem to visualize or grasp how i will include another type of user. do i have to create a different collection in mongo just for admin users? please enlighten me on this subject.

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct