title: How to construct an $or query in mgo
body: <p>I am trying to convert this JS MongoDB query into Go mgo query:</p>
  
  <pre><code>var foo = "bar";
  db.collection.find({"$or": [ {uuid: foo}, {name: foo} ] });
  </code></pre>
  
  <p>This is what I've got so far, but it doesn't work:</p>
  
  <pre><code>conditions := bson.M{"$or": []bson.M{bson.M{"uuid": name}, bson.M{"name": name}}}
  </code></pre>
  
  <p>EDIT: It does seem to work now. Maybe I had a typo somewhere.</p>