beloglazov/couchdb-scala

Get revs info

Opened this issue · 1 comments

mb720 commented

Hi!

I'd like to get the revision info of a particular document in my database.

This is what I came up with till now:

def getRevInfo(id: String) = {

   val dbApi: CouchDbApi = getApi()

   val dbActions = for {
     revsInfo <- dbApi.docs.get.revsInfo().query[MyDocument](id)
  
   } yield revsInfo

   dbActions.unsafePerformSyncAttempt
}

This yields a CouchDoc[MyDocument]; how can I get to its revision info?

Thanks a lot in advance.

mb720 commented

From the feature list I can see that Get list of document revisions is unsupported yet.

Is this accurate?