MongoDB and Mongoose - Create and Save a Record of a Model

Tell us what’s happening:
I can’t seem to pass this challenge. I have watched many tutorials and they all seem to be doing the same as I am but I keep getting the error "MongoError: user is not allowed to do action [insert] on [test.people]

Your project link(s)
solution: boilerplate-mongomongoose - Replit

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36

Challenge: MongoDB and Mongoose - Create and Save a Record of a Model

Link to the challenge:

does any other method from “myApp.js” works from “server.js”? such as : findPersonById, createAndSavePerson?

How do I know if they work or not work (sorry I am pretty new to this). I have completed the challenge for those two already and it was successful if thats what you are asking.

i actually havent gone through this fcc curriculum as of yet, but is your Person data model correct?! try something with an array of plain “String” without that unique Index field, see if that solves it or not, happy learning :slight_smile:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.