title: Querying on Collection attribute in Corda
body: <p>I'm trying to search value inside Corda unconsumed states on a collection Field. </p>
  
  <p>I'm able to search on String field using -</p>
  
  <pre><code>        Field uniqueAttributeName = MySchema.PersistentIOU.class.getDeclaredField("fieldname");
          CriteriaExpression uniqueAttributeEXpression = Builder.equal(uniqueAttributeName, "valueToSearch");
  
          QueryCriteria customCriteria = new QueryCriteria.VaultCustomQueryCriteria(uniqueAttributeEXpression);
          result = rpcOps.vaultQueryByCriteria(customCriteria, MyState.class).getStates();
  </code></pre>
  
  <p>Above worked fine when "fieldname" is String but I have another field which is List and I'm not sure how to search inside List for a specific value. </p>
  
  <p>Please assist.</p>