Using 'include' filter returns related items but with an unexpected object

4 views
Skip to first unread message

DigitalDiva

unread,
Nov 21, 2015, 2:31:52 PM11/21/15
to loopb...@googlegroups.com
I'm using an include filter when querying a user object.  I've checked the database to ensure that the related data exists and it does.

Here is my call:


User.findOne( {
   
where: {email: 'au...@email.com'},
    include
: ['addresses'] },
   
function (err, user) {

       
   
}
);

On inspection, my user looks like the following:


However, when I do a simple "user.addresses[0]" I get "undefined"...(WHAT???)


I've not ever seen this behavior before...HELP???


Thank you for your consideration,


Tami Wright




Reply all
Reply to author
Forward
0 new messages