Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Databases

Carlos Diez
Carlos Diez
75 Points

db.user.find().pretty() display no data

If followed the instructions to the tee and still my application is giving me trouble. I'm using a mongo shell version 3.0.6 and don't know if this might be the issue. Files are exactly the same as those on the teacher notes except for the json and npm modules which I've edited my self through the tutorial. I also keep getting a deprecation warning --'open()' is deprecated in mongoose>= 4.11.0, use 'openUri' instead -- for which i have not found a solution on stackoverflow. If there is any way you can point me in the right direction that would be great

1 Answer

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Carlos;

It has been a while since I have looked at that course. Is the collection named user or users? And are you positive there is data in it and that you are in the correct database?

show collections

Should give you a display of available collections for the currently selected database along with a rough estimate as to the size of the collection.

Post back if you are still stuck.

Ken