Closed ranglang closed 8 years ago
Aim's to querying the mongodb, how can i not use Blocking way for it.
override def getPost(postId: String): Option[PostItem] ={ ApiService.observableToRxObservable(postCollection.find(Filters.equal("_id",BsonObjectId(postId)))) .map(doc => PostFormat.reads(doc)).toBlocking.headOption }
I will be grateful for any comment!
This is not relevant for the SPA tutorial.
Aim's to querying the mongodb, how can i not use Blocking way for it.
I will be grateful for any comment!