Original Reporter: wdong18
Environment: Not Specified
Version: 1.0.0.RC5
Migrated From: http://jira.grails.org/browse/GPMONGODB-220
Suppose Student domain is like:
[classcode:01,studentcode:0101],
[classcode:01,studentcode:0102],
[classcode:02:studentcode:0201]
and I want to get only classcodes like this:
def c = Student.createCriteria();
def stList = c.list {
projections{
property("classcode")
}
}
and stList.size() is 2 instead of 3.
The result is [10,20], not [10,10,20]