> Good day, currently to feed result of database query to velocity
> template i need it converted to Array.
> I have something like this:
> val col = DB.realty.getCollection(table) of BoardEntry
> Is it posssible to convert col to array of BoardEntry ?
MongoCollection[T] inherits Iterable[T] with all its methods, so you can call:
col.toArray