Tell us what’s happening:
I have passed the test, but I would like to know the meaning of the asterisk in the prototype: favoriteFoods : array of strings (*)
. It is not mentioned anywhere in the tutorial, and googling “mongoose schema asterisk array of strings” turns up nothing useful.
Your project link(s)
solution: boilerplate-mongomongoose - Node.js Repl - Replit
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36
Challenge: MongoDB and Mongoose - Create a Model
Link to the challenge: