title: Parse Inverse Relationship in Javascript (whereEqualTo)
body: <p>Im using parse with JS and i'm trying to do a reverse relationship...</p>
  
  <p>I have the follow tables..</p>
  
  <p><code>User</code></p>
  
  <p><code>Offers</code></p>
  
  <p>And the <code>User</code> table has a <code>relationship</code> column to relate a user to an offer and I have two types of relationships <code>used_offers</code> and <code>saved_offers</code> both of which tie the <code>user</code> to a <code>offer</code>.</p>
  
  <p>I decided to put the relationship on the <code>User</code> table instead of the <code>Offers</code> table so that the <code>ACL</code> permission mean that only that user can read the relationship rather than anyone being able to read the relationship on a specific offer.</p>
  
  <p>So... my question is... I am trying to list all the offers but I also want to join (if it exists) a relationship, ie so I know the in data returned it the <code>offer</code> is <code>saved</code> or <code>used</code>.</p>
  
  <p>My current code looks like this...</p>
  
  <pre><code>//Get offer object and create query
  var Offer = Parse.Object.extend("Offer");
  var offerQuery = new Parse.Query(Offer);
  
  var user = Parse.User.current();     //Get user object//Get user object
  console.log(user);     //Check user object exists (ie logged in)
  offerQuery.whereEqualTo("saved_offers", user);     //Get user object//Show relationships
  offerQuery.include(["user"]);     //Get user object//Return the user data also
  offerQuery.find({
       success: function(object) {
           console.log(object);
       },
       error: function(error) {
           console.log(error);
       }
  });
  </code></pre>
  
  <p>I get an error of... <code>uncaught TypeError: undefined is not a function</code></p>
  
  <p>Which im sure is related to the line...</p>
  
  <p><code>offerQuery.whereEqualTo("saved_offers", user);</code></p>
  
  <p>Super appreciate any help here, Parse is great but i cannot find specific documenation to use <code>whereEqualTo</code> (if this is the write command to call) in JS.</p>
  
  <p>Many thanks!</p>