How to retrieve data from MongoDB using find and toArray functions

preview_player
Показать описание
Retrieve data from MongoDB using find and toArray functions

Notes:
00:00 - retrieve created to do items from mongo db
01:40 - check what's inside a 'cursor'
03:00 - testing
Рекомендации по теме
Комментарии
Автор

Thanks for the series! Gave me a great overview of how all these technologies work side by side. Hope you finish the last part as I am very interested in working with Polymer.

benquan
Автор

i have a error and i cannot also see my db data...
TypeError: Cannot read properties of undefined (reading 'collection')
----
mycode
----
app.get('/list', function (req, response) {
db.collection('post').find().toArray(function(err, results){
console.log(results);
});
});

loco
Автор

But in case of mongoose i didnot use any toamAray() method

jivanmainali
Автор

very nice series. I'm looking for a complete series for PHP devs that shows how to setup the folder structures and use react js

joseffb
Автор

db.collection is not a function..I am getting this error i have done it same as you

mukeshnegi
Автор

thanks for the video dude.
only one question, why it returns to me db.collection is not a function

kpopbests
Автор

Thanks for the series so far, i am really looking forward for the polymer part! There is one thing i don't understand about the form: When i submit it, i have no form data in the network tab.. this is really strange

onkelbob
Автор

did you add the polymer video yet ? ... thanks for the overview, was very helpful ... looking for the polymer video. Oh, and lovely accent :)

UbhiTS