Details
-
New Feature
-
Resolution: Done
-
Major - P3
-
None
-
None
-
None
-
None
-
Fully Compatible
Description
It would be great if field specification could limit automatically array elements. So that you could do something like:
```
db.foo.find({},
)
```
And get from:
```
{bar: ['a', 'b', 'c']}```
This result:
```
{bar: 'a'}```