title: Grails embedded query array
body: <p>i have a code like this on grails mongodb</p>
  
  <pre><code>//myDomain
  class Plugin {
      List&lt;String&gt; projects = []
      //projects has name and description
  }
  
  //myController
  def query = null
      if (params.q != null)
      {
          def q = '%'+ params.q +'%'
          query = Plugin.where {
              (projects.name =~ q || projects.name ==~ q)
          }
      }
  //return null
  </code></pre>
  
  <p>why i can't find plugin by projects.name?</p>