title: Redash MongoDB query by ObjectID
body: <p>I have a collection with the following document structure: </p>
  
  <pre><code>{
      "_id" : ObjectId("58aa706c658d1dc6c700002c"),
      "source" : "web",
      "type" : "Comentarios",
      "email" : "jhondoe@xyz.com",
      "updated_at" : ISODate("2017-02-20T04:28:28.623Z"),
      "created_at" : ISODate("2017-02-20T04:28:28.623Z")
  }
  </code></pre>
  
  <p>I need to build a query in <strong>Redash Syntax</strong> to get a document by '_id'. I built the following query but always I got an error: "Invalid query format. The query is not a valid JSON."</p>
  
  <pre><code>{
      "collection": "commerce_messages",
      "query" : {
          "_id": "ObjectId(58aa706c658d1dc6c700002c)"
      }
  }
  </code></pre>
  
  <p>I tried enclosing the ObjectId on quotes but the query does not return results.</p>
  
  <p>The only documentation I have found about this is in this link: <a href="https://redash.io/help/queries/querying_mongodb.html" rel="nofollow noreferrer">https://redash.io/help/queries/querying_mongodb.html</a> but they do not explain how to query for ObjectId.</p>