Marci81
5/26/2018 - 12:04 PM

find all

{ }: {inside here you can specife what you looking for instance name:"Peter" so that will find all item that has a name Peter if you leave this object empty than it will find all item} function() : this call back will run after the find method finished

\!h Cat.find({},function (err,cats) {
    if (err) {
        console.log("Error");
        console.log(err);
    } else {
        console.log("All the cats...");
        console.log(cats);
    }
});