MongoDB and Mongoose - Create and Save a Record of a Model, Creating and saving a db item should succeed

Welcome, jhaycawasa.

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.

Note: Backticks are not single quotes.

markdown_Forums

To help your question: If you have run the script to create a model, and it was not 100% correct to begin with, then your database has an incorrect collection, and you could try:

  1. Going into your Mongo account, and clearing all records.
  2. Re-running the tests/script.

Or

  1. Go back to the first challenge, and concurrently complete all of them again.

Hope this helps