Currently, I am attempting to wrap my head around Meteor's method of returning database records. Here is the code snippet that I have been working with:
Template.body.helpers({
items(){
return Items.find({});
},
json(){
console.log(this.items());
},
loggedIn(){
return Meteor.userId();
}
});
I find myself somewhat perplexed by the behavior of the json method. It doesn't straightforwardly output an array, and the child values don't appear to be returned in array form either.
While I can easily access the values within inline HTML using spacebars, I'm having trouble figuring out how to access them through JavaScript. What simple detail am I overlooking here?