On Thursday, 16 July 2015 at 20:17:54 UTC, Jarl André Hübenthal wrote: > return coll.find().map!(doc => deserialize!(BsonSerializer, > Resource)(doc)); Solved by wrapping return statement in array(...)