πŸ€‘ 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

  • 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
  • Edsel Talento
    Edsel Talento
    16,922 Points

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

    Posted February 6, 2021 6:16am 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 July 23, 2019 8:11pm 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 February 1, 2019 6:43pm 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 January 6, 2019 7:23pm 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 August 4, 2018 4:00pm 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 July 16, 2018 9:11pm 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 June 18, 2018 12:55pm 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 April 25, 2018 2:27am 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 March 22, 2018 9:18pm 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 January 13, 2018 9:36pm 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 January 7, 2018 1:15am 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 October 23, 2017 1:14pm 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 October 9, 2017 4:45pm 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 August 16, 2017 5:45pm 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 July 16, 2017 3:48pm 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 May 7, 2017 4:10pm 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 April 26, 2017 6:34pm 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 March 3, 2017 5:30am 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 January 22, 2017 3:17am 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 January 22, 2017 1:25am 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 October 28, 2016 12:50am 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 September 6, 2016 3:03pm 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 July 29, 2016 5:31pm 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.