Have a look
console.log(docs);
console.log(docs.key);
console.log(docs.user);
// outputs:
[ { key: 'HunueVwerwbZwesZHxntesDciakecyiJ',
user: '[email protected]',
createdAt: Mon Mar 17 2014 08:48:30 GMT-0400 (EDT),
_id: 5326ef1ee883062522faa4a8,
__v: 0 } ]
undefined
undefined
What's wrong with the way I am trying to access this object?
docs[0].keywould work.[0]element.