-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
count exercise: no parrots collection #33
Comments
I'm working on the count exercise. My own soluction I think is correct, I see no errors but it just wont run. I even copied the solution code Evan Lucas provides in my js file and I still can't run it. EMs all over the place and each time I see something about 'db.collection('parrots').remove({}, function(err) {' blablabla. Remove? I did that exercise or am I not getting it? All I know is fcc, I'm very very new at this. I think I have restarted that db several times. (I repeat exercise 2). I always get 'sucessfully installed' and that's it. Maybe it's my pc. |
I'm having this issue with the Find exercise I think. I tried running a find that would get everything, just to test if things were working, but the array printed is blank. |
I was able to fix this issue by deleting the files from the data folder and restarting mongod, then running Not sure what was causing the issue but this resolved it. Further verification can be gained by running If you can see the collection via the mongo prompt but not from your js file then there may be something wrong with your code. |
My code is almost exactly like the solution code, but returns no documents. Going into the mongo console I ran
show collections
. The only collections were docs, system.indexes, and users, but no parrots. I restarted mongod in one terminal (mongod --port 27017 --dbpath=./data --nojournal), and mongo in the next terminal and parrots did show up.If anyone else is having this issue you may need to restart the db.
The text was updated successfully, but these errors were encountered: