required: spray.httpx.marshalling.ToResponseMarshallable Error
问题 Hey im pretty new to Spray and reactive mongo . Im trying to return a list of result as json but i'm having some issue with converting the result to list of json. this is my model import reactivemongo.bson.BSONDocumentReader import reactivemongo.bson.BSONObjectID import reactivemongo.bson.Macros case class Post(id: BSONObjectID, likes: Long, message: String, object_id: String, shares: Long) object Post { implicit val reader: BSONDocumentReader[Post] = Macros.reader[Post] } the Mongo method