Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Get revs info #66

@mb720

Description

@mb720

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions