title: How to retrieve a specific object with Parse.Query
body: <p>I am using Parse to create a WebApp and I am trying to get an instance of an object <code>Product</code>with this code:</p>
  <pre><code>getProduct: function() {
     var productClass = Parse.Object.extend(&quot;Product&quot;);
     var query = new Parse.Query(productClass);
     var result = query.get(productId, {
         success: function(object) {
            console.log(object.get(&quot;productName&quot;));
         },
         error: function(object, error) {
             ...
         }
     });
     return result;
  }
  </code></pre>
  <p>I get a:</p>
  <pre><code>result.get is not a function
  </code></pre>
  <p>Printing the object only, I realized that I do not get a <code>Product</code>, I get this in the console (Safari):</p>
  <pre><code>[Log] Object (views.js, line 269)
  _rejected: false
  _rejectedCallbacks: Array[0]
  _resolved: true
  _resolvedCallbacks: Array[0]
  _result: Arguments[1]
  __proto__: Object
  </code></pre>
  <p>I tried many ways, but I am not able to retrieve a <code>Product</code> object and its attributes. What am I doing wrong?</p>
  <h3>EDIT</h3>
  <p>I am adding my <code>Products View</code>:</p>
  <pre><code>window.app.Products = Parse.View.extend({
  
      template: _.template($('#products-template').html()),
  
      el: $('body'),
      content: $('#content'),
  
      ...
  
      initialize: function() {
          _.bindAll(this, 'render');
          this.render();
      },
  
      render: function () {
          $(this.content).html(this.template);
          return this;
      },
  
      ...
  
      getUser: function() {
          return Parse.User.current();
      },
  
      getUserProduct: function() {
          var promise = new Parse.Promise();
  
          var productClass = Parse.Object.extend(&quot;Product&quot;);
          var query = new Parse.Query(productClass);
          query.equalTo(&quot;objectId&quot;, this.getUser().get(&quot;product&quot;).id);
          query.first().then(function(result) {
              if(result){
                  // If result was defined, the object with this objectID was found
                  promise.resolve(result);
              } else {
                  console.log(&quot;Product was not found&quot;);
                  promise.resolve(null);
              }
          }, function(error){
              console.error(&quot;Error searching for Product. Error: &quot; + error);
              promise.error(error);
          });
  
          return promise;
      },
  
      setProduct: function() {
          this.getUserProduct().then(function(result) {
              if(result){
                  console.log(result.get(&quot;productName&quot;));
                  var productName = result.get(&quot;productName&quot;);
  
              } else {
                  console.log(&quot;Could not set Product&quot;); 
              }
          }, function(error){
              console.log(&quot;Error: &quot; + error);
          });
      }
  });
  </code></pre>
  <p>I was trying by having a list of parameters and updating them like:</p>
  <pre><code>info: {
           user: '...',
           product: '...'
        }
  </code></pre>
  <p>Then passing it to the <code>template</code>:</p>
  <pre><code>$(this.content).html(this.template(this.info));
  </code></pre>
  <p>But I am not able to update <code>product</code>.</p>