title: MongoDB nested value query
body: <p>I have an entry in my database that looks like:</p>
  
  <pre><code>{
    "_id" : ObjectId("4e93ace3f8208ca743000004"),
    "title" : "Entry",
    "domain" : {
      "_id" : ObjectId("4e9305d5f8208cab43000001"),
      "name" : "Google"
    }
  }
  </code></pre>
  
  <p>To query for that particular entry (or entries that use the same domain) it <em>looks</em> like I'm supposed to query using:</p>
  
  <pre><code>db.entries.find({domain._id : ObjectId("4e9305d5f8208cab43000001")})
  </code></pre>
  
  <p>This however produces an error:</p>
  
  <pre><code>SyntaxError: missing : after property id (shell):1
  </code></pre>
  
  <p>What am I doing wrong in my query? Secondarily, how can I branch this out to PHP?</p>