title: mongodb go: `mongo: no documents in result`
body: <p>I have a pretty simple entry in my mongoDB database:</p>
  <pre><code>{&quot;_id&quot;:{&quot;$oid&quot;:&quot;609b15511a048e03dda05861&quot;},&quot;password&quot;:&quot;test_password&quot;,&quot;answer&quot;:&quot;test_answer&quot;}
  </code></pre>
  <p>And when I use filter parameters in the Atlas UI, I am able to pull up results.</p>
  <p>Filter:</p>
  <pre><code>{&quot;password&quot;: &quot;test_password&quot;}
  </code></pre>
  <p>However, when I call to the DB, I keep getting the error <code>mongo: no documents in result</code></p>
  <pre class="lang-golang prettyprint-override"><code>filter := bson.M{&quot;password&quot;: &quot;test_password&quot;}
  ctx, _ := context.WithTimeout(context.Background(), 10*time.Second)
  err := collection.FindOne(ctx, filter).Decode(&amp;result)
  if err != nil {
      log.Printf(&quot;%v&quot;, err)
  }
  </code></pre>
  <p>I appear to be connecting properly to the collection. Any thoughts?</p>