title: Setting pointer using parse server SDK
body: <p>I need to create a new element and update it from "current offer" and the old offer as "previews offer". This is what I have:</p>
  
  <pre><code>  this.saveCounterOffer = function(currentOffer, price) {
    price = parseInt(price, 10);
  
    var offers = Parse.Object.extend("Offer");
    var exchanges = Parse.Object.extend("Exchange");
  
    var offer = new offers(); 
    var offerQuery = new Parse.Query(offers);
    var exchangesQuery = new Parse.Query(exchanges);
  
    var newOffer = Object.assign(offer, currentOffer);
    delete newOffer.id;
    newOffer.set("price", price); 
    newOffer.save().then(function(response) {
        exchangesQuery.find({
          success: function(exchange) {
            exchange.forEach(function(ex) {
              if(ex.get("currentOffer").id == currentOffer.id) {
                //everything works fine until here
                ex.set("currentOffer", newOffer);
                ex.set("previousOffer", currentOffer);
                console.log('Ex:', ex);
                ex.save().then(function(response) {
                  console.log('response', response);
                });
              }
            });
          }, error: function(err) {
            console.log("error", err);
          }
        });
    });
  </code></pre>
  
  <p>I does create a new offer in the offers table, but I get the following error for changing the status in the Exchange table:</p>
  
  <pre><code>  {"code":111,"error":"schema mismatch for Exchange.previousOffer; 
    expected Pointer&lt;Offer&gt; but got Object"}
  </code></pre>
  
  <p>I understand it's expecting a pointer but I don't know how to set a pointer. Can anybody help?</p>