title: Android. Parse. Many-to-many using an array
body: <p>The example from <a href="http://docs.parseplatform.org/android/guide/#using-an-array" rel="nofollow noreferrer">the official documentation</a> shows how to find a ParseObject inside an <code>Array</code> type column</p>
  
  <pre><code>// set up our query for the Book object
  ParseQuery bookQuery = ParseQuery.getQuery("Book");
  
  // configure any constraints on your query...
  booKQuery.whereEqualTo("authors", author);
  
  // tell the query to fetch all of the Author objects along with the Book
  bookQuery.include("authors");
  
  // execute the query
  bookQuery.findInBackground(newFindCallback&lt;ParseObject&gt;() {
      public void done(List&lt;ParseObject&gt; bookList, ParseException e) {
  
      }
  });
  </code></pre>
  
  <p>My question is: is there a way to have instead of one "author" ParseObject, multiple ones? I'm trying to search the objects in the <code>Array</code> which are contained inside the results of another query. </p>
  
  <p>More precisely: I'd like to obtain all the books that are written by all the authors who's names start with "xxxx". And do this in a single query.</p>
  
  <p>Can it even be done in a single query?!
  If I do <code>booKQuery.whereMatchesQuery("authors", innerQuery);</code> where <code>innerQuery</code> queries the <code>Authors</code> to search for all author names which start with a certain string value, it won't work. </p>
  
  <p>Any ideas ?!</p>