title: Passing in Parse Object into a cloud code function
body: <p>I have a cloud code function that creates a GuestlistInvite </p>
  
  <p>Object. It takes a phoneNumber, a guestlist Object, and a guest Object. </p>
  
  <p>I call on the function like so:</p>
  
  <pre><code>Parse.Cloud.run('createGuestlistInviteForExistingUser', {
     phoneNumber: phoneNumber,
     guestlist: guestlist,
     guest: user
     }).then(function(guestlistInvite) {
        response.success(successfully created guestlistInvite');
   }); 
  </code></pre>
  
  <p>Both the guestlist and user are pointers. However in my logs I receive an error:</p>
  
  <pre><code>Result: Error: Parse Objects not allowed here
  </code></pre>
  
  <p>Any idea why this is happening?</p>
  
  <pre><code>Parse.Cloud.define('createGuestlistInviteForExistingUser', function(request, response) {
  
    var phoneNumber = request.params.phoneNumber;
    var guestlist = request.params.guestlist;
    var guest = request.params.guest;
  
    var guestlistInvite = new Parse.Object("GuestlistInvite");
  
    guestlistInvite.save({
      phoneNumber: phoneNumber,
      Guestlist: guestlist,
      Guest: guest,
      checkInStatus: false,
      response: 0
    }).then(function(guestlistInvite) {
      console.log('guestlistInvite for existing user was created');
      response.success(guestlistInvite);
    }, function(error) {
      response.error('guestlistInvite was not saved');
    });
  
  });
  </code></pre>