I have added defaults for all my fields, but I still can't get a partial projection to work.
This does work: MyModelDao.projection[Files](MongoDBObject("uniqueIdentifier" -> "identifier"), "files")
where Files is a component case class of MyModel.
This does not work: MyModelDao.projection[MyModel](MongoDBObject("uniqueIdentifier" -> "identifier"), "")
And by "not work," I mean the preceding call returns None while the other returns Some.
If we assume I haven't missed a default value somewhere, can you point out where my call is flawed? I have a feeling empty string (I also tried "{}" and "*") isn't the way to go.
Thanks.