So I have this:

```
Template.cards.cards = function () {
  var deck = Deck.findOne({active: 1});
  var cards = Cards.find({deck_id: deck['_id']}).fetch();
  return cards;
}

```

But "deck" is returning undefined, even though calling the same query from the browser console returns results.

I feel like this is a reactivity issue and there is something fundamentally wrong with how I'm going about achieving this. It feels like a very relational way to go about things, I'm new to non-relational data storage too. I feel like there might be something fundamentally wrong with the way I'm going about this but I'm new to Meteor, I've trawled through the docs but can't find where I might be going wrong. Any help is greatly appreciated.