Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get revs info #66

Open
mb720 opened this issue Nov 12, 2016 · 1 comment
Open

Get revs info #66

mb720 opened this issue Nov 12, 2016 · 1 comment

Comments

@mb720
Copy link

mb720 commented Nov 12, 2016

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
Copy link
Author

mb720 commented Nov 14, 2016

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

Is this accurate?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant