title: Golang Mongodb collection members starts with a string query
body: <p>Mongodb collection has a array type and members are string. I want to get if a member of array starts with &quot;abc&quot;. How can I write a filter for that?</p>
  <p>collection example:</p>
  <pre><code>{
  _id:&quot;1&quot;,
  name:&quot;&quot;,
  data:[&quot;abcdfd&quot;,&quot;gfgqqdg&quot;,&quot;abcfdgsfg&quot;]
  },
  {
  _id:&quot;2&quot;,
  name:&quot;&quot;,
  data:[&quot;abcdfd&quot;,&quot;gfgqqdg&quot;,&quot;ghfdgsfg&quot;]
  },
  {
  _id:&quot;3&quot;,
  name:&quot;&quot;,
  data:[&quot;hjhfdfd&quot;,&quot;gfgqqdg&quot;,&quot;afdgsfg&quot;]
  }
  
  </code></pre>
  <p>So, find query must return first and second because the &quot;data&quot; has members start with &quot;abc&quot;.</p>