title: Meteor returning [object Object]
body: <p>I'm creating a simple app to learn Meteor and am having trouble understanding how to query the DB properly. After changing the structure of my data, I now get [object Object] in my template instead of the information that was originally showing. The DB and API call seem to be working properly. I think this has something to do with my Session variables or helper function. </p>
  
  <p>Here's the code:</p>
  
  <p>On Client: </p>
  
  <pre><code>FiledRoutes = new Meteor.Collection('filedRoutes');
  
  Template.routesTemplate.helpers({
  filedRoutes: function() {
      return FiledRoutes.find();
    }
  });
  
  Deps.autorun(function() {
  Meteor.subscribe('filedRoutes', Session.get("origin"), Session.get("destination"));
  })
  
  Template.airportForm.events({
  "submit form": function(event) {
  
      event.preventDefault()
      var origin = $('#origin').val();
      var destination = $('#destination').val();
  Session.set('origin', $('#origin').val());
  Session.set('destination', $('#destination').val());
      Meteor.call("callFltAware", origin, destination, function (e, result) {
          if (!e &amp;&amp; result) {
              console.log(result.data.RoutesBetweenAirportsExResult.data);
          }
      });
  }
  })
  </code></pre>
  
  <p>On Server:</p>
  
  <pre><code>FiledRoutes = new Meteor.Collection('filedRoutes');
  
  Meteor.publish('filedRoutes', function(origin, destination) {
  return FiledRoutes.find({airports: {origin: origin, destination: destination}});
  })
  
  Meteor.startup(function() {
  // code to run on server at startup
  });
  
  var url = "http://flightxml.flightaware.com/json/FlightXML2/";
  var username = "user";
  var apiKey = "pass";
  
  Meteor.methods({
  callFltAware: function(origin, destination) {
      this.unblock()
    try {
      var result = HTTP.call("GET", url + 'RoutesBetweenAirportsEx', {
          auth: "user:pass",
          params: {
              origin: origin, 
              destination: destination,
              howMany: 15,
              offset: 0,
              maxDepartureAge: "10 days",
              maxFileAge: "30 days"
          }
  });
  
  var r = result.data.RoutesBetweenAirportsExResult.data; 
    for (var i = 0; i &lt; r.length; i++) {
  
    var route = { 
      airports: {
          origin: origin, 
          destination: destination
              },
      route: { 
            route: r[i].route, 
            filedAltitude_max: 
            r[i].filedAltitude_max, 
            filedAltitude_min: r[i].filedAltitude_min
          }
          } 
  
          FiledRoutes.insert(route);
  
  
      }
      return result
    } catch (e) {
      console &amp;&amp; console.log &amp;&amp; console.log('Exception calling', url)
      throw e
    }
  }
  })
  </code></pre>
  
  <p>Template where I'm getting [object Object]:</p>
  
  <pre><code>&lt;template name="routesTemplate"&gt;
  &lt;div class="filedRoute"&gt;
      {{#each filedRoutes}}
           {{&gt;route}}
      {{/each}}
  &lt;/div&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;template name="route"&gt;
  &lt;div class="route"&gt;
      &lt;li&gt;{{route}}&lt;/li&gt;
  &lt;/div&gt;
  &lt;/template&gt;
  </code></pre>
  
  <p>This was working properly before I put origin and destination together in an object. </p>