title: Parse - Array of pointers - Many to Many relationship query
body: <p>I have a Many-to-Many relationship between the following tables : <code>User</code> and <code>School</code>. My users are parents, and they have child(ren) in one or several schools.</p>
  
  <p>I spent a few hours reading about designing Many-to-Many relationships on NoSQL databases. I came to the conclusion that the right way to do it was to only store an array of <code>User</code> named <code>parents</code> within the <code>School</code> table. </p>
  
  <p>In Parse.com, this can be materialized by an array of pointers toward the right <code>User</code> object. </p>
  
  <p>Now, I want to retrieve all <code>School</code>s for a given parent. Here is How I thought I should do : </p>
  
  <pre><code>  var School        = Parse.Object.extend("School");
    var school_query  = new Parse.Query(School);
    var current_user  = Parse.User.current();
  
    school_query.equalTo("parents.objectId", current_user.id);
    school_query.find().then(
      function(schools) {
        console.log("Success");
      },
      function(error) {
        console.log("Error");
      }
   );
  </code></pre>
  
  <p>This is returning <code>POST https://api.parse.com/1/classes/School 400 (Bad Request)</code>, calling the "error" callback, although there exist pointers corresponding to my current user within some <code>School.parents</code> array. </p>
  
  <p>What is the correct way to query an array of pointers to retrieve its nesting object only if the array contains the pointer towards the current user?</p>