title: Grails-Mongo Check Contains in Domain's List Criteria Query
body: <p>I'm using grails 3.3.5 with GORM Version 6.1.9</p>
  
  <p>In my application I've created the domain as follows..</p>
  
  <pre><code>class Camera {
       String cameraId
       List&lt;String&gt; typesInclude
  
     static constraints = {
        typesInclude nullable: false
     }
  }
  </code></pre>
  
  <p>Now I've added some records in the Camera Colletions.</p>
  
  <pre><code>db.camera.find().pretty()
  {
      "_id" : NumberLong(1),
      "version" : NumberLong(0),
      "typesInclude" : [
          "T1"
      ],
      "cameraId" : "cam1"
  }
  {
      "_id" : NumberLong(2),
      "version" : NumberLong(0),
      "typesInclude" : [
          "T2"
      ],
      "cameraId" : "cam2",
  }
  {
      "_id" : NumberLong(3),
      "version" : NumberLong(0),
      "typesInclude" : [
          "T2",
          "T3"
      ],
      "cameraId" : "cam3",
  }
  </code></pre>
  
  <p>Now when I'm trying to get Camera By type like T2. I'm unable to get results using the following function..</p>
  
  <pre><code>def getCameraListByType(String type){
      def cameraInstanceList = Camera.createCriteria().list {
           ilike("typesInclude","%${type}%")
      }
      return cameraInstanceList
  }
  </code></pre>
  
  <p>Any help would be appreciated.</p>