✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
    • Showing results for:
    • JavaScript
    • User Authentication With Express and Mongo
    • User Registration
    • Adding Data to the Database
    • Close
  • Edsel Talento
    Edsel Talento
    16,922 Points

    What is the difference between posting data with fetch() and Model.create()?

    Posted on Feb 6, 2021 by Edsel Talento
    Edsel Talento
    16,922 Points
    • JavaScript
    • User Authentication With Express and Mongo
    • User Registration
    • Adding Data to the Database

    1 Answer

  • S K
    S K
    55 Points

    When you said I have to run the executable for mongod am I meant to do this via command line in windows?

    Posted on Jul 23, 2019 by S K
    S K
    55 Points
    • JavaScript
    • User Authentication With Express and Mongo
    • User Registration
    • Adding Data to the Database

    1 Answer

  • Daniel Baker
    Daniel Baker
    15,369 Points

    (node:11668) DeprecationWarning:

    Posted on Feb 1, 2019 by Daniel Baker
    Daniel Baker
    15,369 Points
    • JavaScript
    • User Authentication With Express and Mongo
    • User Registration
    • Adding Data to the Database

    3 Answers

  • Irena B.
    Irena B.
    8,713 Points

    "show collections is not showing anything"

    Posted on Jan 6, 2019 by Irena B.
    Irena B.
    8,713 Points
    • JavaScript
    • User Authentication With Express and Mongo
    • User Registration
    • Adding Data to the Database

    2 Answers

  • Vitaly Kashubin
    Vitaly Kashubin
    8,449 Points

    Hello guys. I have PROMLEM!!!! Im getting ERROR "User.create is not a function"!

    Posted on Aug 4, 2018 by Vitaly Kashubin
    Vitaly Kashubin
    8,449 Points
    • JavaScript
    • User Authentication With Express and Mongo
    • User Registration
    • Adding Data to the Database

    1 Answer

  • Marshall Bradley
    Marshall Bradley
    13,552 Points

    I NEED HELP!!!! server port works but gettin error in console as well.. Deprecation Warning

    Posted on Jul 16, 2018 by Marshall Bradley
    Marshall Bradley
    13,552 Points
    • JavaScript
    • User Authentication With Express and Mongo
    • User Registration
    • Adding Data to the Database

    2 Answers

  • Martin Coutts
    Martin Coutts
    18,154 Points

    Getting all fields required error handler even when it is my two passwords not being the same causing the error

    Posted on Jun 18, 2018 by Martin Coutts
    Martin Coutts
    18,154 Points
    • JavaScript
    • User Authentication With Express and Mongo
    • User Registration
    • Adding Data to the Database

    1 Answer

  • Shyam Gupta
    Shyam Gupta
    7,757 Points

    What does the empty error object do in the error handler middleware?

    Posted on Apr 25, 2018 by Shyam Gupta
    Shyam Gupta
    7,757 Points
    • JavaScript
    • User Authentication With Express and Mongo
    • User Registration
    • Adding Data to the Database

    0 Answers

  • Brian Patterson
    Brian Patterson
    19,588 Points

    I am getting the error User.create not a function.

    Posted on Mar 22, 2018 by Brian Patterson
    Brian Patterson
    19,588 Points
    • JavaScript
    • User Authentication With Express and Mongo
    • User Registration
    • Adding Data to the Database

    1 Answer

  • Don Macarthur
    Don Macarthur
    28,430 Points

    User.create Method Not Working

    Posted on Jan 13, 2018 by Don Macarthur
    Don Macarthur
    28,430 Points
    • JavaScript
    • User Authentication With Express and Mongo
    • User Registration
    • Adding Data to the Database

    2 Answers

  • Zach Freitag
    Zach Freitag
    20,341 Points

    npm ERR! treehouse-express-auth@1.0.0 start: `node ./app`

    Posted on Jan 7, 2018 by Zach Freitag
    Zach Freitag
    20,341 Points
    • JavaScript
    • User Authentication With Express and Mongo
    • User Registration
    • Adding Data to the Database

    1 Answer

  • John C
    PLUS
    John C
    Courses Plus Student 138 Points

    How does express pull the error pug template when passwords don't match. I don't see a route defined for this template.

    Posted on Oct 23, 2017 by John C
    John C
    Courses Plus Student 138 Points
    • JavaScript
    • User Authentication With Express and Mongo
    • User Registration
    • Adding Data to the Database

    1 Answer

  • chris ingvartsen
    PLUS
    chris ingvartsen
    Courses Plus Student 52 Points

    Best practice for CRUD requests with Express on large applications?

    Posted on Oct 9, 2017 by chris ingvartsen
    chris ingvartsen
    Courses Plus Student 52 Points
    • JavaScript
    • User Authentication With Express and Mongo
    • User Registration
    • Adding Data to the Database

    1 Answer

  • Alexei Parphyonov
    Alexei Parphyonov
    34,128 Points

    The name of the collection

    Posted on Aug 16, 2017 by Alexei Parphyonov
    Alexei Parphyonov
    34,128 Points
    • JavaScript
    • User Authentication With Express and Mongo
    • User Registration
    • Adding Data to the Database

    1 Answer

  • Ken Stone
    Ken Stone
    29,703 Points

    filter input escape output?

    Posted on Jul 16, 2017 by Ken Stone
    Ken Stone
    29,703 Points
    • JavaScript
    • User Authentication With Express and Mongo
    • User Registration
    • Adding Data to the Database

    0 Answers

  • Charles-Antoine Francisco
    Charles-Antoine Francisco
    27,426 Points

    Why is the Sign Up Form Validation done on the server?

    Posted on May 7, 2017 by Charles-Antoine Francisco
    Charles-Antoine Francisco
    27,426 Points
    • JavaScript
    • User Authentication With Express and Mongo
    • User Registration
    • Adding Data to the Database

    1 Answer

  • Kathryn Notson
    Kathryn Notson
    25,941 Points

    User Authentication with Express and Mongo > User Registration > Adding Data to the Database

    Posted on Apr 26, 2017 by Kathryn Notson
    Kathryn Notson
    25,941 Points
    • JavaScript
    • User Authentication With Express and Mongo
    • User Registration
    • Adding Data to the Database

    3 Answers

  • Ryan Moody
    Ryan Moody
    20,499 Points

    Help please

    Posted on Mar 3, 2017 by Ryan Moody
    Ryan Moody
    20,499 Points
    • JavaScript
    • User Authentication With Express and Mongo
    • User Registration
    • Adding Data to the Database

    0 Answers

  • Brendan Moran
    Brendan Moran
    14,052 Points

    Why is the second argument, "user" passed in to the User.create() callback function?

    Posted on Jan 22, 2017 by Brendan Moran
    Brendan Moran
    14,052 Points
    • JavaScript
    • User Authentication With Express and Mongo
    • User Registration
    • Adding Data to the Database

    2 Answers

  • Brendan Moran
    Brendan Moran
    14,052 Points

    req.body.email -- does the email property come from the name attribute?

    Posted on Jan 22, 2017 by Brendan Moran
    Brendan Moran
    14,052 Points
    • JavaScript
    • User Authentication With Express and Mongo
    • User Registration
    • Adding Data to the Database

    1 Answer

  • Amy Shah
    Amy Shah
    25,337 Points

    I am having trouble getting the download at S4V6 to run with nodemon even though mongo db is on. There is a module 327

    Posted on Oct 28, 2016 by Amy Shah
    Amy Shah
    25,337 Points
    • JavaScript
    • User Authentication With Express and Mongo
    • User Registration
    • Adding Data to the Database

    2 Answers

  • Lauren Haygood
    Lauren Haygood
    16,901 Points

    Getting the wrong error message on POST.

    Posted on Sep 6, 2016 by Lauren Haygood
    Lauren Haygood
    16,901 Points
    • JavaScript
    • User Authentication With Express and Mongo
    • User Registration
    • Adding Data to the Database

    2 Answers

  • Phillip Chan
    Phillip Chan
    3,914 Points

    When I try to create a new user, it gives the error "User.create is not a function”.

    Posted on Jul 29, 2016 by Phillip Chan
    Phillip Chan
    3,914 Points
    • JavaScript
    • User Authentication With Express and Mongo
    • User Registration
    • Adding Data to the Database

    4 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.