Closed ohermans1 closed 1 year ago
Are you trying to run mongoose on react side of things? If yes, please, and don't take this lightly, go back to tutorials and understand why you shouldn't be making database calls directly from your frontend and it should be from your server instead.
Hey mate,
Thanks so much for your help a few days ago, and I'm sorry for pestering you again (last time I promise). Feel free to just ignore me and mark this as solved if you can't be bothered responding haha.
Basically, I'm trying to add some content to MongoDB.
I can see that your inbuild models are connecting up with no issues:
I created a new model, based of your original ones:
Then I run it as per your models as well (using findOneAndUpdate)
But, for some reason I get the following error:
Do you have any tips or tricks? I'm imagining there is something simple I'm missing here!